Run details:
Mozilla/5.0 (Linux; Android 10; YAL-L21) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
2 years ago
Test name Executions per second
switch case 22.5 Ops/sec
jump table 21.0 Ops/sec
jump table (arrow functions) 21.0 Ops/sec
jump table (Map) 19.2 Ops/sec
Script Preparation code:
Tests:
  • switch case

  • jump table

  • jump table (arrow functions)

  • jump table (Map)