Run details:
Mozilla/5.0 (Linux; Android 12; SM-A528B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Mobile Safari/537.36 EdgA/102.0.1245.39
Chrome Mobile 102
Android
Mobile
one year ago
Test name Executions per second
Switch 39566.4 Ops/sec
Object Literal 39040.0 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal