Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
trycatch-benchmark-sum
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser:
Chrome 130
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
trycatch inside
257460.2 Ops/sec
baseline
255352.9 Ops/sec
trycatch outside
259370.0 Ops/sec
Tests:
trycatch inside
let sum = 0; for (let i =0; i < 10000; i++) { try { sum += i; } catch(e) {} }
baseline
let sum = 0; for (let i =0; i < 10000; i++) { sum += i; }
trycatch outside
let sum = 0; try { for (let i =0; i < 10000; i++) { sum += i; } } catch(e) {}