local var vs property

Benchmark created by dan on


Preparation HTML

<script>
  var x = 0;
  
  
  var z = function() {
   this.y = 0;
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
1
x = 2
ready
2
z.y = 2
ready

Revisions

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