Run details:
Mozilla/5.0 (Android 10; Mobile; rv:88.0) Gecko/88.0 Firefox/88.0
Firefox Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
switch 659454.8 Ops/sec
if/else 584596.9 Ops/sec
lookup 190944.0 Ops/sec
pre-cached lookup 3507963.8 Ops/sec
Script Preparation code:
Tests:
  • switch

  • if/else

  • lookup

  • pre-cached lookup


;