Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Linux
Desktop
one year ago
Benchmark.js
if-else (hits else)
115.3M/s
if-else (hits if)
112.7M/s
try-catch control flow (no exception)
112.2M/s
try-catch control flow (thrown exception)
189K/s
View exact numbers
Test name Executions per second
if-else (hits else) 115,344,648 Ops/sec
if-else (hits if) 112,710,192 Ops/sec
try-catch control flow (no exception) 112,155,504 Ops/sec
try-catch control flow (thrown exception) 189,011 Ops/sec
Tests: