Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Android
Desktop
one year ago
Test name Executions per second
Switch 21011.4 Ops/sec
Object Literal 21332.1 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal