Passing an empty promise

Benchmark created on


Preparation HTML

			

Test runner

Ready to run.

Testing in
TestOps/sec
Passing promise
const props = {
	initiate: () => Promise.reject(),
}

props.initiate()	
ready
Passing undefined
const props = {
	initiate: () => undefined
};

props.initiate()

ready
Passing nothing
props = {
	
}

props.initiate?.()
ready

Revisions

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