Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:101.0) Gecko/20100101 Firefox/101.0
Firefox 101
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
Set spread num 64868.1 Ops/sec
Array from set 65988.4 Ops/sec
Filter 19304.0 Ops/sec
Create Set 102752.6 Ops/sec
For 43659.4 Ops/sec
Set array 20233.0 Ops/sec
Array set string 65085.0 Ops/sec
For string 8343.4 Ops/sec
Create set string 32318.0 Ops/sec
Filter string 3357.6 Ops/sec
Filter string small 261210.2 Ops/sec
Filter number small 447080.8 Ops/sec
Create set small string 332985.2 Ops/sec
Create set small 597530.6 Ops/sec
For string small 126356.1 Ops/sec
For small 171326.8 Ops/sec
Array set small string 210031.3 Ops/sec
Array set small 352121.9 Ops/sec
Spread set small 355517.2 Ops/sec
Spread set small string 212247.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


;