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 476.4 Ops/sec
Array 2 418.3 Ops/sec
Array 3 378.0 Ops/sec
if 1 11274.5 Ops/sec
if 2 5537.6 Ops/sec
if 3 6369.8 Ops/sec
Set 1 11082.4 Ops/sec
Set 2 8488.5 Ops/sec
Set 3 11531.3 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