Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Set spread num 133056.8 Ops/sec
Array from set 131265.6 Ops/sec
Filter 28254.1 Ops/sec
Create Set 138054.7 Ops/sec
For 13847.5 Ops/sec
Set array 66410.2 Ops/sec
Array set string 131423.1 Ops/sec
For string 6869.5 Ops/sec
Create set string 69016.1 Ops/sec
Filter string 2397.7 Ops/sec
Filter string small 195663.0 Ops/sec
Filter number small 269565.4 Ops/sec
Create set small string 698446.5 Ops/sec
Create set small 827472.0 Ops/sec
For string small 67893.6 Ops/sec
For small 93814.1 Ops/sec
Array set small string 529530.3 Ops/sec
Array set small 689298.0 Ops/sec
Spread set small 765098.2 Ops/sec
Spread set small string 639170.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


;