Sugar extend

Benchmark created on


Preparation HTML

<script src="//sugarjs.com/release/current/sugar.min.js"></script>

Setup

Object.extend()
    var hash = {
      a: 1,
      b: "2",
      c: [3, "4"]
    }

Test runner

Ready to run.

Testing in
TestOps/sec
Object not extended
Object.each(hash, function(k, v) {
  k + v
})
ready
Object extended
hash.each(function(k, v) {
  k + v
})
ready

Revisions

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