Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0
Chrome 124
Windows
Desktop
7 months ago
Test name Executions per second
try-catch control flow (no exception) 215847584.0 Ops/sec
try-catch control flow (thrown exception) 234908.2 Ops/sec
if-else (hits if) 188702400.0 Ops/sec
if-else (hits else) 179137456.0 Ops/sec
Tests:
  • try-catch control flow (no exception)

  • try-catch control flow (thrown exception)

  • if-else (hits if)

  • if-else (hits else)