Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Mac OS X 10.14
Desktop
5 years ago
Test name Executions per second
Set spread num 73199.8 Ops/sec
Array from set 75270.7 Ops/sec
Filter 7949.6 Ops/sec
Create Set 94500.1 Ops/sec
For 166894.8 Ops/sec
Set array 23794.3 Ops/sec
Array set string 73402.8 Ops/sec
For string 6859.6 Ops/sec
Create set string 28416.1 Ops/sec
Filter string 763.8 Ops/sec
Filter string small 89338.4 Ops/sec
Filter number small 648418.7 Ops/sec
Create set small string 323441.2 Ops/sec
Create set small 604961.2 Ops/sec
For string small 97392.7 Ops/sec
For small 763443.5 Ops/sec
Array set small string 243757.8 Ops/sec
Array set small 413750.6 Ops/sec
Spread set small 442874.6 Ops/sec
Spread set small string 260158.2 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


;