Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:85.0) Gecko/20100101 Firefox/85.0
Firefox 85
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Set spread num 38600.3 Ops/sec
Array from set 42250.9 Ops/sec
Filter 2762.7 Ops/sec
Create Set 46938.3 Ops/sec
For 37513.4 Ops/sec
Set array 11242.0 Ops/sec
Array set string 28152.0 Ops/sec
For string 1538.9 Ops/sec
Create set string 6854.3 Ops/sec
Filter string 315.6 Ops/sec
Filter string small 27545.4 Ops/sec
Filter number small 121642.6 Ops/sec
Create set small string 79181.4 Ops/sec
Create set small 127072.1 Ops/sec
For string small 38028.2 Ops/sec
For small 144800.3 Ops/sec
Array set small string 156910.1 Ops/sec
Array set small 235083.9 Ops/sec
Spread set small 227626.9 Ops/sec
Spread set small string 119422.8 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


;