func vs arrow

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
function
let x = 0;
let z = main(x);

function main(a) {
	return helper(a);
}

function helper(b) {
	return b + 10;
}
ready
arrow
const helper = (b) => {
	return b + 10;
};

const main = (a) => {
	return helper(a);
};

let x = 0;
let z = main(x);
ready

Revisions

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