Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Windows
Desktop
7 months ago
Test name Executions per second
Set spread num 259924.0 Ops/sec
Array from set 228282.5 Ops/sec
Filter 34276.4 Ops/sec
Create Set 255193.7 Ops/sec
For 21588.1 Ops/sec
Set array 122017.1 Ops/sec
Array set string 243403.0 Ops/sec
For string 10343.7 Ops/sec
Create set string 119889.4 Ops/sec
Filter string 6350.4 Ops/sec
Filter string small 377250.1 Ops/sec
Filter number small 343075.0 Ops/sec
Create set small string 1126206.4 Ops/sec
Create set small 1206542.8 Ops/sec
For string small 119389.5 Ops/sec
For small 151092.8 Ops/sec
Array set small string 943196.4 Ops/sec
Array set small 1030173.4 Ops/sec
Spread set small 1053135.1 Ops/sec
Spread set small string 972280.1 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


;