Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36
Chrome 98
Windows
Desktop
2 years ago
Test name Executions per second
Set spread num 137947.3 Ops/sec
Array from set 101422.6 Ops/sec
Filter 9156.7 Ops/sec
Create Set 112044.8 Ops/sec
For 10418.0 Ops/sec
Set array 61292.1 Ops/sec
Array set string 122453.1 Ops/sec
For string 5294.1 Ops/sec
Create set string 58805.4 Ops/sec
Filter string 2079.2 Ops/sec
Filter string small 178569.2 Ops/sec
Filter number small 198183.4 Ops/sec
Create set small string 567546.6 Ops/sec
Create set small 726652.9 Ops/sec
For string small 54482.7 Ops/sec
For small 83795.2 Ops/sec
Array set small string 559893.4 Ops/sec
Array set small 670409.1 Ops/sec
Spread set small 577415.6 Ops/sec
Spread set small string 554566.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


;