Run details:
Mozilla/5.0 (Android 9; Tablet; rv:66.0) Gecko/66.0 Firefox/66.0
Firefox 66
Android
Tablet
5 years ago
Test name Executions per second
switch 7808264.0 Ops/sec
if/else 7806440.5 Ops/sec
lookup 469198.3 Ops/sec
pre-cached lookup 2993519.0 Ops/sec
Script Preparation code:
Tests:
  • switch

  • if/else

  • lookup

  • pre-cached lookup


;