Run details:
Mozilla/5.0 (Windows NT 10.0; rv:114.0) Gecko/20100101 Firefox/114.0
Firefox 114
Windows
Desktop
one year ago
Test name Executions per second
switch case 599.3 Ops/sec
jump table 257.4 Ops/sec
jump table (arrow functions) 141.4 Ops/sec
jump table (Map) 116.6 Ops/sec
Script Preparation code:
Tests:
  • switch case

  • jump table

  • jump table (arrow functions)

  • jump table (Map)


;