object-freeze

Benchmark created 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;
hot.x = hot.y;
hot.y = t;
ready
cold
var t = cold.x;
cold.x = cold.y;
cold.y = t;
ready

Revisions

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