Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Windows
Desktop
one year ago
Test name Executions per second
Set spread num 158230.3 Ops/sec
Array from set 156650.1 Ops/sec
Filter 32380.9 Ops/sec
Create Set 168660.7 Ops/sec
For 17230.1 Ops/sec
Set array 87127.3 Ops/sec
Array set string 157041.3 Ops/sec
For string 8392.2 Ops/sec
Create set string 88600.2 Ops/sec
Filter string 5631.8 Ops/sec
Filter string small 299612.4 Ops/sec
Filter number small 316079.3 Ops/sec
Create set small string 927458.4 Ops/sec
Create set small 972920.4 Ops/sec
For string small 83151.8 Ops/sec
For small 106817.0 Ops/sec
Array set small string 748466.2 Ops/sec
Array set small 802543.8 Ops/sec
Spread set small 895584.0 Ops/sec
Spread set small string 842808.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


;