Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
2 months ago
Test name Executions per second
Set spread num 81953.0 Ops/sec
Array from set 87673.4 Ops/sec
Filter 18264.0 Ops/sec
Create Set 40155.1 Ops/sec
For 9328.0 Ops/sec
Set array 38621.2 Ops/sec
Array set string 91595.1 Ops/sec
For string 7031.7 Ops/sec
Create set string 71859.7 Ops/sec
Filter string 4480.1 Ops/sec
Filter string small 247696.2 Ops/sec
Filter number small 251063.8 Ops/sec
Create set small string 592363.4 Ops/sec
Create set small 692742.9 Ops/sec
For string small 66507.7 Ops/sec
For small 88208.4 Ops/sec
Array set small string 330314.3 Ops/sec
Array set small 402176.2 Ops/sec
Spread set small 250627.8 Ops/sec
Spread set small string 272400.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


;