Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Windows
Desktop
2 years ago
Test name Executions per second
Set spread num 80343.0 Ops/sec
Array from set 82262.9 Ops/sec
Filter 16572.4 Ops/sec
Create Set 110741.5 Ops/sec
For 137763.8 Ops/sec
Set array 22603.0 Ops/sec
Array set string 78391.1 Ops/sec
For string 11857.9 Ops/sec
Create set string 33431.2 Ops/sec
Filter string 2807.1 Ops/sec
Filter string small 241715.2 Ops/sec
Filter number small 416728.4 Ops/sec
Create set small string 341210.0 Ops/sec
Create set small 493299.4 Ops/sec
For string small 171113.2 Ops/sec
For small 599038.3 Ops/sec
Array set small string 243908.0 Ops/sec
Array set small 345884.0 Ops/sec
Spread set small 325398.5 Ops/sec
Spread set small string 254849.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


;