Run details:
Mozilla/5.0 (Linux; Android 13; SAMSUNG SM-G991B) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/20.0 Chrome/106.0.5249.126 Mobile Safari/537.36
Chrome Mobile 106
Android
Mobile
one year ago
Test name Executions per second
map lookup 731240.1 Ops/sec
switch case 855022.0 Ops/sec
if/else 829900.0 Ops/sec
Script Preparation code:
Tests:
  • map lookup

  • switch case

  • if/else