Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Linux
Desktop
8 months ago
Test name Executions per second
Set spread num 146552.5 Ops/sec
Array from set 142531.2 Ops/sec
Filter 30007.8 Ops/sec
Create Set 175267.6 Ops/sec
For 22183.5 Ops/sec
Set array 121482.5 Ops/sec
Array set string 146932.2 Ops/sec
For string 7966.8 Ops/sec
Create set string 99312.4 Ops/sec
Filter string 7449.0 Ops/sec
Filter string small 398794.1 Ops/sec
Filter number small 408969.7 Ops/sec
Create set small string 1068730.2 Ops/sec
Create set small 1138240.6 Ops/sec
For string small 121195.6 Ops/sec
For small 146205.1 Ops/sec
Array set small string 784560.6 Ops/sec
Array set small 691423.6 Ops/sec
Spread set small 745670.6 Ops/sec
Spread set small string 751576.0 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


;