Try/Catch Block Performance Comparison (v16)

Revision 16 of this benchmark created on


Description

Measuring the performance implications of a try/catch block.

Setup

var n;

Test runner

Ready to run.

Testing in
TestOps/sec
Plain
n = 1;
ready
Try/Catch Block
try{
    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.