value object vs object property

Benchmark created by Igor Minar on


Preparation HTML

<script>
  var size = 23,
      stats = {
    size: 23
      };
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
value object
size++;
ready
object property
stats.size++;
ready

Revisions

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

  • Revision 1: published by Igor Minar on