functions perf comparison (v3)

Revision 3 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
declaration
function add(a, b) { return a + b; };

return add(3+7);
ready
expression
const fn = function add(a, b) { return a + b; };

return fn(3+7);
ready
arrow
const add = (a, b) => a + b;

return add(3+7);
ready

Revisions

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