Run details:
Mozilla/5.0 (Linux; Android 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.58 Mobile Safari/537.36
Chrome Mobile 93
Android
Mobile
3 years ago
Test name Executions per second
Set spread num 20583.6 Ops/sec
Array from set 20667.8 Ops/sec
Filter 3285.7 Ops/sec
Create Set 21963.2 Ops/sec
For 2851.8 Ops/sec
Set array 12884.3 Ops/sec
Array set string 20710.8 Ops/sec
For string 1489.4 Ops/sec
Create set string 13230.6 Ops/sec
Filter string 813.0 Ops/sec
Filter string small 52506.7 Ops/sec
Filter number small 57008.0 Ops/sec
Create set small string 110778.3 Ops/sec
Create set small 117825.5 Ops/sec
For string small 15265.0 Ops/sec
For small 18952.4 Ops/sec
Array set small string 93236.0 Ops/sec
Array set small 102678.7 Ops/sec
Spread set small 111526.5 Ops/sec
Spread set small string 102360.2 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


;