try catch overhead (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
nothing
var a = function(){return a;};
var b = function(){return a();}

for (var i = 0; i < 1000; i++) {
  b();
}
ready
try catch
var a = function(){try{return a;}catch(e) {}};
var b = function(){return a();}

for (var i = 0; i < 1000; i++) {
  b();
}
ready

Revisions

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