functions perf comparison (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
declaration
function add(a, b) { return a + b; }
ready
expression
const fn = function add(a, b) { return a + b; };
ready
arrow
const fn = (a, b) => a + b;
ready

Revisions

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