Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Direct call vs bind vs call vs apply vs static bound
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0
Browser:
Firefox 129
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
direct call
1648.8M/s
call
1648.3M/s
static bind
309.3M/s
apply
308.3M/s
bind
139.5M/s
View exact numbers
Test name
Executions per second
✓
direct call
1,648,777,600 Ops/sec
call
1,648,324,992 Ops/sec
static bind
309,263,968 Ops/sec
apply
308,315,616 Ops/sec
bind
139,454,880 Ops/sec
Script Preparation code:
function test(msg) { var d = msg; } var testBound = test.bind(null);
Tests:
direct call
test("Hello");
bind
test.bind(null, "Hello")();
call
test.call(null, "Hello");
apply
test.apply(null, ["Hello"]);
static bind
testBound("Hello");