Test name | Executions per second |
---|---|
direct call | 827941824.0 Ops/sec |
saved bind | 85249080.0 Ops/sec |
inline bind | 42363032.0 Ops/sec |
call | 786095680.0 Ops/sec |
apply | 80231592.0 Ops/sec |
closure | 785275584.0 Ops/sec |
function test(msg) {
var d = msg;
}
var boundTest = test.bind("Hello");
var closure = () => test("Hello");
test("Hello");
boundTest();
test.bind(null, "Hello")();
test.call(null, "Hello");
test.apply(null, ["Hello"]);
closure()