Direct access vs rewrap

Benchmark created on


Setup

const fooMethod = () => {console.log('fo')}

Test runner

Ready to run.

Testing in
TestOps/sec
direct access
const barMethod = (foo) =>{
	foo();
}


barMethod(fooMethod);
ready
re-wrap
const bar2Method = (fooWrap) => {
	const internalBar = () => {
		fooWrap();
	}
}

bar2Method(fooMethod)
ready

Revisions

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