Performance implications of try catch

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
try catch
function foo() {
	try {
		console.log(1+1);
	}
	catch(e) {
		console.log(e);
	}
}

foo();
ready
no try catch
function foo() {
	console.log(1)
}

foo();
ready

Revisions

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