Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Direct call vs saved bind vs inline bind vs call vs apply vs closure
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Browser:
Chrome 131
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
direct call
97081024.0 Ops/sec
saved bind
102080416.0 Ops/sec
inline bind
65429128.0 Ops/sec
call
59471808.0 Ops/sec
apply
64086204.0 Ops/sec
closure
101356672.0 Ops/sec
Script Preparation code:
function test(msg) { var d = msg; } var boundTest = test.bind("Hello"); var closure = () => test("Hello");
Tests:
direct call
test("Hello");
saved bind
boundTest();
inline bind
test.bind(null, "Hello")();
call
test.call(null, "Hello");
apply
test.apply(null, ["Hello"]);
closure
closure()