29bf4a62-8127-498e-8aff-81c36d771b86

Benchmark created on


Preparation HTML

<script>
function promiseWith2Catch() {
	return Promise.reject('Hi Liam')
	.catch(err => {
		throw err;
	})
	.catch(err => {
		return err;
	});
}

function promiseWith1Catch() {
	return Promise.reject('Hi Liam')
	.catch(err => {
		return err;
	});
}
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
promiseWith1Catch
promiseWith1Catch();
ready
promiseWith2Catch
promiseWith2Catch();
ready

Revisions

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