Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Set spread num 151728.7 Ops/sec
Array from set 66959.9 Ops/sec
Filter 16056.0 Ops/sec
Create Set 84466.9 Ops/sec
For 7687.2 Ops/sec
Set array 36238.2 Ops/sec
Array set string 77618.0 Ops/sec
For string 5597.1 Ops/sec
Create set string 35723.4 Ops/sec
Filter string 2852.5 Ops/sec
Filter string small 189757.9 Ops/sec
Filter number small 190785.9 Ops/sec
Create set small string 284483.8 Ops/sec
Create set small 496404.2 Ops/sec
For string small 26643.1 Ops/sec
For small 73740.2 Ops/sec
Array set small string 594664.7 Ops/sec
Array set small 666666.7 Ops/sec
Spread set small 329797.1 Ops/sec
Spread set small string 281430.5 Ops/sec
Script Preparation code:
Tests:
  • Set spread num

  • Array set small

  • Array set small string

  • For small

  • For string small

  • Create set small

  • Create set small string

  • Filter number small

  • Filter string small

  • Filter string

  • Create set string

  • For string

  • Array set string

  • Set array

  • For

  • Create Set

  • Filter

  • Array from set

  • Spread set small

  • Spread set small string


;