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/129.0.0.0 Safari/537.36 Edg/129.0.0.0
Browser:
Chrome 129
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
trycatch outside
146K/s
baseline
144K/s
trycatch inside
135K/s
View exact numbers
Test name
Executions per second
✓
trycatch outside
145,851 Ops/sec
baseline
144,152 Ops/sec
trycatch inside
134,936 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) {}