Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Set spread num 134240.9 Ops/sec
Array from set 135480.8 Ops/sec
Filter 31468.8 Ops/sec
Create Set 145003.6 Ops/sec
For 16844.4 Ops/sec
Set array 71450.6 Ops/sec
Array set string 131649.5 Ops/sec
For string 7925.1 Ops/sec
Create set string 76560.2 Ops/sec
Filter string 2621.1 Ops/sec
Filter string small 306492.2 Ops/sec
Filter number small 310007.6 Ops/sec
Create set small string 753032.5 Ops/sec
Create set small 817053.9 Ops/sec
For string small 78428.8 Ops/sec
For small 111833.0 Ops/sec
Array set small string 620927.3 Ops/sec
Array set small 693779.9 Ops/sec
Spread set small 780088.2 Ops/sec
Spread set small string 685053.3 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


;