Arrow function VS Regular function

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Regular function
function foo(bar) {
	return bar;
}
ready
Arrow function
const foo = (bar) => bar;
ready

Revisions

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