Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Linux
Desktop
8 months ago
Test name Executions per second
Set spread num 153384.1 Ops/sec
Array from set 135600.4 Ops/sec
Filter 28366.9 Ops/sec
Create Set 139466.4 Ops/sec
For 14659.8 Ops/sec
Set array 67000.0 Ops/sec
Array set string 134940.8 Ops/sec
For string 7607.0 Ops/sec
Create set string 70593.8 Ops/sec
Filter string 2940.0 Ops/sec
Filter string small 252677.4 Ops/sec
Filter number small 308237.5 Ops/sec
Create set small string 720713.4 Ops/sec
Create set small 809370.3 Ops/sec
For string small 83472.4 Ops/sec
For small 112386.6 Ops/sec
Array set small string 684202.9 Ops/sec
Array set small 788733.4 Ops/sec
Spread set small 783402.2 Ops/sec
Spread set small string 714624.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


;