Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Windows
Desktop
2 years ago
Test name Executions per second
Set spread num 149590.5 Ops/sec
Array from set 144610.6 Ops/sec
Filter 25014.9 Ops/sec
Create Set 161231.6 Ops/sec
For 12849.5 Ops/sec
Set array 75308.6 Ops/sec
Array set string 149464.0 Ops/sec
For string 6518.4 Ops/sec
Create set string 73520.0 Ops/sec
Filter string 2278.4 Ops/sec
Filter string small 189221.7 Ops/sec
Filter number small 217371.0 Ops/sec
Create set small string 694161.4 Ops/sec
Create set small 874071.2 Ops/sec
For string small 63774.1 Ops/sec
For small 85020.4 Ops/sec
Array set small string 572099.1 Ops/sec
Array set small 704250.4 Ops/sec
Spread set small 819403.0 Ops/sec
Spread set small string 674709.0 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


;