Try/Catch Block Performance Comparison (v12)

Revision 12 of this benchmark created on


Description

Measuring the performance implications of a try/catch block.

Test runner

Ready to run.

Testing in
TestOps/sec
Plain
var n = 1;
if (n != undefined){
};
ready
Try/Catch Block
try{
    var n = 1;
}catch(e){}
ready
Try/Catch Block With Error
try{
    (0)();
}catch(e){}
ready

Revisions

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