Run details:
Mozilla/5.0 (Linux; Android 13; SM-G781B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.149 Mobile Safari/537.36 OPR/81.3.4292.78688
Opera Mobile 81
Android
Mobile
9 months ago
Test name Executions per second
Switch 39002.0 Ops/sec
Object Literal 40913.9 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal