Try/Catch performance overhead (v7)

Revision 7 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
no try/catch
parseInt(!!document.body.firstChild.offsetParent, 10) //0 or 1
ready
try/catch
try {
parseInt(!!document.body.firstChild.offsetParent, 10) //0 or 1
}
catch(e) {}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.