Bind vs Self closure (v5)

Revision 5 of this benchmark created on


Preparation HTML

<script>
  this.a = 0;

  function binded() {
    this.a = 1;
  }

  var self = this;
  function closured() {
    self.a = 1;
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
binded
binded.bind(this)();
ready
closured
closured()
ready

Revisions

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