Run details:
Mozilla/5.0 (Linux; Android 11) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/90.0.4430.210 Mobile DuckDuckGo/5 Safari/537.36
Chrome Mobile 90
Android
Mobile
2 years ago
Test name Executions per second
switch 2989597.8 Ops/sec
if/else if 601434.5 Ops/sec
Script Preparation code:
Tests:
  • switch

  • if/else if


;