Test bind calls (v6)

Revision 6 of this benchmark created by Meinaart van Straalen on


Description

Test impact on performance with bind calls.

Setup

var Tester = {
      counter: 0,
      increment: function() {
        this.counter++;
      }
    };

Test runner

Ready to run.

Testing in
TestOps/sec
without bind
Tester.increment();
ready
with bind
Tester.increment.bind(Tester)();
ready

Revisions

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