Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Mac OS X 10.15.7
Desktop
4 months ago
Test name Executions per second
Set spread num 215772.3 Ops/sec
Array from set 211755.4 Ops/sec
Filter 35580.2 Ops/sec
Create Set 227794.6 Ops/sec
For 23547.8 Ops/sec
Set array 129320.7 Ops/sec
Array set string 211707.7 Ops/sec
For string 11745.8 Ops/sec
Create set string 134254.1 Ops/sec
Filter string 6202.3 Ops/sec
Filter string small 385965.7 Ops/sec
Filter number small 453543.2 Ops/sec
Create set small string 1211675.1 Ops/sec
Create set small 1421157.9 Ops/sec
For string small 126261.5 Ops/sec
For small 167759.8 Ops/sec
Array set small string 1040442.0 Ops/sec
Array set small 1229903.8 Ops/sec
Spread set small 1336392.0 Ops/sec
Spread set small string 1135788.9 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


;