object-freeze (v17)

Revision 17 of this benchmark created on


Preparation HTML

<script>
  var hot = {
   x: 1,
   y: 2
  };
  var cold = Object.freeze({
   x: 1,
   y: 2
  });
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
hot
var t = hot.x;
var j = hot.y;
k = t + j;
 
ready
cold
var t = cold.x;
var j = cold.y;
k = t + j;
ready

Revisions

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