Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0
Firefox 64
Windows 7
Desktop
5 years ago
Test name Executions per second
ifTest1 524571488.0 Ops/sec
ifTest2 495848736.0 Ops/sec
ifTest3 472741696.0 Ops/sec
switchTest1 458057760.0 Ops/sec
switchTest2 503142240.0 Ops/sec
switchTest3 487655392.0 Ops/sec
Object keys 464277056.0 Ops/sec
Script Preparation code:
Tests:
  • ifTest1

  • ifTest2

  • ifTest3

  • switchTest1

  • switchTest2

  • switchTest3

  • Object keys


;