Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0
Firefox 145
Windows
Desktop
6 months ago
Test name Executions per second
if/else 3702.0 Ops/sec
switch/case 3802.2 Ops/sec
JSON 3718.5 Ops/sec
Script Preparation code:
Tests:
  • if/else

  • switch/case

  • JSON