Try/Catch Error Perf (v56)

Revision 56 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Try Catch
try {
     return undef.prop;
} catch (ex) {
     return null;
}
ready
If Check
if (typeof undef != 'undefined') {
      return undef.prop;
} else {
      return null;
}
ready

Revisions

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