object-freeze-5 (v10)

Revision 10 of this benchmark created by Adam Sanderson on


Preparation HTML

<script>

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

Test runner

Ready to run.

Testing in
TestOps/sec
hot
var z = hot.x + hot.y;
ready
cold
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.