Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Windows
Desktop
one month ago
Test name Executions per second
Array 1 295.7 Ops/sec
Array 2 305.6 Ops/sec
Array 3 282.1 Ops/sec
if 1 1280.4 Ops/sec
if 2 1309.9 Ops/sec
if 3 1083.5 Ops/sec
Set 1 849.8 Ops/sec
Set 2 1115.1 Ops/sec
Set 3 1039.7 Ops/sec
Inline Set 1 13.8 Ops/sec
Inline set 2 14.2 Ops/sec
Inline set 3 13.8 Ops/sec
Inline const set 1 14.1 Ops/sec
Inline const set 2 14.1 Ops/sec
Inline const set 3 9.7 Ops/sec
Script Preparation code:
Tests:
  • Array 1

  • Array 2

  • Array 3

  • if 1

  • if 2

  • if 3

  • Set 1

  • Set 2

  • Set 3

  • Inline Set 1

  • Inline set 2

  • Inline set 3

  • Inline const set 1

  • Inline const set 2

  • Inline const set 3