Run details:
Mozilla/5.0 (X11; CrOS x86_64 12871.67.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.94 Safari/537.36
Chrome 81
Chrome OS 12871.67.0
Desktop
4 years ago
Test name Executions per second
Switch 53579.3 Ops/sec
Object Literal 60794.5 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal