getters and variables

Benchmark created on


Preparation HTML

<script>
  var obj = new Object();
  obj.x = 5;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
prefetch
var objX = obj.x;
var sum = objX + 5;
var sum2 = objX + 10;
var sum3 = objX + 15;
ready
use getters
var sum = obj.x + 5;
var sum2 = obj.x + 10;
var sum3 = obj.x + 15;
ready

Revisions

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