Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Chrome 100
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Set spread num 183176.9 Ops/sec
Array from set 183189.1 Ops/sec
Filter 21002.3 Ops/sec
Create Set 195263.5 Ops/sec
For 21466.0 Ops/sec
Set array 88405.1 Ops/sec
Array set string 181609.0 Ops/sec
For string 10894.9 Ops/sec
Create set string 102060.6 Ops/sec
Filter string 5079.8 Ops/sec
Filter string small 363311.2 Ops/sec
Filter number small 373313.0 Ops/sec
Create set small string 967340.0 Ops/sec
Create set small 1158816.5 Ops/sec
For string small 114538.1 Ops/sec
For small 141465.8 Ops/sec
Array set small string 833616.9 Ops/sec
Array set small 990304.5 Ops/sec
Spread set small 1082381.0 Ops/sec
Spread set small string 907073.2 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


;