object-freeze (v16)

Revision 16 of this benchmark created on


Preparation HTML

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

Setup

var sum = 0;

Test runner

Ready to run.

Testing in
TestOps/sec
hot
sum += hot.x;
sum += hot.y;
 
ready
cold
sum += cold.x;
sum += cold.y;
 
ready

Revisions

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