Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
Chrome 86
Linux
Desktop
2 years ago
Test name Executions per second
Set spread num 84801.4 Ops/sec
Array from set 93897.9 Ops/sec
Filter 11107.7 Ops/sec
Create Set 96473.6 Ops/sec
For 9696.6 Ops/sec
Set array 43233.4 Ops/sec
Array set string 83810.2 Ops/sec
For string 5231.9 Ops/sec
Create set string 49335.7 Ops/sec
Filter string 2171.8 Ops/sec
Filter string small 185044.4 Ops/sec
Filter number small 199187.1 Ops/sec
Create set small string 478724.9 Ops/sec
Create set small 548757.8 Ops/sec
For string small 53050.8 Ops/sec
For small 73704.5 Ops/sec
Array set small string 385855.9 Ops/sec
Array set small 418524.9 Ops/sec
Spread set small 506920.1 Ops/sec
Spread set small string 444191.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


;