Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
Chrome 79
Windows
Desktop
4 years ago
Test name Executions per second
ifTest1 530033408.0 Ops/sec
ifTest2 535007456.0 Ops/sec
ifTest3 535020736.0 Ops/sec
switchTest1 532775104.0 Ops/sec
switchTest2 534487104.0 Ops/sec
switchTest3 531583552.0 Ops/sec
Script Preparation code:
Tests:
  • ifTest1

  • ifTest2

  • ifTest3

  • switchTest1

  • switchTest2

  • switchTest3


;