try catch performance (v3)

Revision 3 of this benchmark created on


Setup

let i = 0

Test runner

Ready to run.

Testing in
TestOps/sec
empty code
;
ready
empty try catch finally
try {}
catch {}
finally {}
ready
pure code
i++
ready
code in try
try {i++}
catch {}
finally {}
ready
code in finally
try {}
catch {}
finally {i++}
ready
throw catch
try {throw ''}
catch {i++}
ready
throw with finally
try {throw ''}
catch {}
finally {i++}
ready
throw in 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.