Try catch vs Promise catch async (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Native try catch
try {
  throw new Error();
} catch (e) {
}
ready
Native Promise
// async test
new Promise((resolve, reject) => {
  reject('error');
}).catch((e) => {
	
});
ready

Revisions

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