Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Set spread num 39062.8 Ops/sec
Array from set 56790.0 Ops/sec
Filter 11607.5 Ops/sec
Create Set 86893.4 Ops/sec
For 85740.0 Ops/sec
Set array 16726.5 Ops/sec
Array set string 49922.4 Ops/sec
For string 9828.8 Ops/sec
Create set string 20172.8 Ops/sec
Filter string 1874.1 Ops/sec
Filter string small 127306.4 Ops/sec
Filter number small 202686.2 Ops/sec
Create set small string 207334.5 Ops/sec
Create set small 352061.2 Ops/sec
For string small 138233.4 Ops/sec
For small 297531.7 Ops/sec
Array set small string 134616.6 Ops/sec
Array set small 185220.4 Ops/sec
Spread set small 227010.5 Ops/sec
Spread set small string 144106.3 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


;