Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 OPR/102.0.0.0 (Edition std-1)
Opera 102
Windows
Desktop
one year ago
Test name Executions per second
Set spread num 184548.7 Ops/sec
Array from set 190300.6 Ops/sec
Filter 40210.0 Ops/sec
Create Set 201727.0 Ops/sec
For 20853.5 Ops/sec
Set array 111708.4 Ops/sec
Array set string 189364.0 Ops/sec
For string 10411.8 Ops/sec
Create set string 118946.8 Ops/sec
Filter string 7324.9 Ops/sec
Filter string small 397417.2 Ops/sec
Filter number small 420588.7 Ops/sec
Create set small string 873067.3 Ops/sec
Create set small 929351.4 Ops/sec
For string small 108518.0 Ops/sec
For small 140730.5 Ops/sec
Array set small string 778218.2 Ops/sec
Array set small 821406.1 Ops/sec
Spread set small 864220.9 Ops/sec
Spread set small string 843604.6 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


;