Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Set spread num 221450.7 Ops/sec
Array from set 222419.6 Ops/sec
Filter 34407.3 Ops/sec
Create Set 238308.1 Ops/sec
For 22150.5 Ops/sec
Set array 119074.1 Ops/sec
Array set string 221104.0 Ops/sec
For string 11368.0 Ops/sec
Create set string 133960.4 Ops/sec
Filter string 6226.8 Ops/sec
Filter string small 389555.7 Ops/sec
Filter number small 463654.7 Ops/sec
Create set small string 1130978.2 Ops/sec
Create set small 1308808.9 Ops/sec
For string small 118482.9 Ops/sec
For small 140068.9 Ops/sec
Array set small string 954352.9 Ops/sec
Array set small 942667.9 Ops/sec
Spread set small 1237835.6 Ops/sec
Spread set small string 1062250.5 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


;