try catch performance (v2)

Revision 2 of this benchmark created on


Setup

let i = 0

Test runner

Ready to run.

Testing in
TestOps/sec
empty code
;
ready
empty try catch
try {}
catch {}
ready
pure code
i++
ready
code with try
try { i++ }
catch {}
ready
code with throw
try {throw ''}
catch {i++}
ready
code with finally
try {}
finally {i++}
ready
throw with finally
try {throw ''}
catch {}
finally {i++}
ready
nested try catch
try {
	try { throw '' }
	catch (error) {	throw error	}
}
catch {	i++ }
ready

Revisions

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