Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
Firefox 65
Windows
Desktop
5 years ago
Test name Executions per second
ifTest1 1368116608.0 Ops/sec
ifTest2 1359396480.0 Ops/sec
ifTest3 1403181312.0 Ops/sec
switchTest1 1391033600.0 Ops/sec
switchTest2 1400368000.0 Ops/sec
switchTest3 1339207040.0 Ops/sec
Object keys 1338963584.0 Ops/sec
Script Preparation code:
Tests:
  • ifTest1

  • ifTest2

  • ifTest3

  • switchTest1

  • switchTest2

  • switchTest3

  • Object keys