object-freeze-4 (v4)

Revision 4 of this benchmark created by dnolen on


Preparation HTML

<script>
  function make_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 hot = make_hot();
var z = hot.x + hot.y;
ready
cold
var cold = 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.