Script Preparation code:
x
 
function test(msg) {
  var d = msg;
}
const 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");
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    direct call
    bind
    call
    apply
    static bind

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!