Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Windows
Desktop
one year ago
Test name Executions per second
Set spread num 192812.0 Ops/sec
Array from set 195987.8 Ops/sec
Filter 35016.6 Ops/sec
Create Set 203519.5 Ops/sec
For 16901.8 Ops/sec
Set array 119826.6 Ops/sec
Array set string 186231.2 Ops/sec
For string 9016.2 Ops/sec
Create set string 127505.5 Ops/sec
Filter string 7574.2 Ops/sec
Filter string small 350201.2 Ops/sec
Filter number small 352942.8 Ops/sec
Create set small string 1006323.1 Ops/sec
Create set small 1043862.4 Ops/sec
For string small 94297.6 Ops/sec
For small 119283.1 Ops/sec
Array set small string 840380.1 Ops/sec
Array set small 859827.8 Ops/sec
Spread set small 996975.0 Ops/sec
Spread set small string 937450.7 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


;