Function Calls

Benchmark published by System on

Description

Arrow functions vs regular functions overhead.

Setup

const arrow = (a, b) => a + b;
function regular(a, b) { return a + b; }

Test Runner

Initializing...

Testing in
Test CaseOps/sec
Arrow function
arrow(5, 10);
ready
Regular function
regular(5, 10);
ready

Revisions

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

Revision 1
publishedby Systemon