Run details:
Mozilla/5.0 (Android 11; Mobile; rv:122.0) Gecko/122.0 Firefox/122.0
Firefox Mobile 122
Android
Mobile
10 months ago
Test name Executions per second
map lookup 29860140.0 Ops/sec
switch case 43243952.0 Ops/sec
if/else 5696997.0 Ops/sec
Script Preparation code:
Tests:
  • map lookup

  • switch case

  • if/else