object-freeze-3 (v3)

Revision 3 of this benchmark created by dnolen on


Preparation HTML

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

Test runner

Ready to run.

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

Revisions

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