Run details:
Mozilla/5.0 (Android 9; Mobile; rv:108.0) Gecko/108.0 Firefox/108.0
Firefox Mobile 108
Android
Mobile
one year ago
Test name Executions per second
Switch 191257456.0 Ops/sec
Object Literal 209750272.0 Ops/sec
Script Preparation code:
Tests:
  • Switch

  • Object Literal