object-freeze-5 (v5)

Revision 5 of this benchmark created by dnolen on


Preparation HTML

<script>
  function make_hot() {
   return {
    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 hot = make_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.