Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15
Safari 15
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Set spread num 90185.4 Ops/sec
Array from set 82935.4 Ops/sec
Filter 4900.1 Ops/sec
Create Set 97355.0 Ops/sec
For 12042.4 Ops/sec
Set array 48650.6 Ops/sec
Array set string 87946.0 Ops/sec
For string 6158.3 Ops/sec
Create set string 62057.2 Ops/sec
Filter string 1253.3 Ops/sec
Filter string small 90571.8 Ops/sec
Filter number small 134962.8 Ops/sec
Create set small string 590335.7 Ops/sec
Create set small 633460.8 Ops/sec
For string small 65306.4 Ops/sec
For small 74998.5 Ops/sec
Array set small string 446057.4 Ops/sec
Array set small 478773.3 Ops/sec
Spread set small 466568.9 Ops/sec
Spread set small string 454734.6 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


;