deep extend

JavaScript performance comparison

Test case created by

Preparation code

<script src="https://raw.github.com/bestiejs/lodash/v1.0.1/dist/lodash.js">

      
<script>
Benchmark.prototype.setup = function() {
  o = {
  string:'a',
  int: 1,
  array: [1,2,3],
  oarray: [{'one':1, 'two':'two'}, {'_one':1, '_two':'_two'}]
  }
  e = {
  string: 'b',
  string2: 'a',
  array: [1,2]
  }
  

};
</script>

Preparation code output

<script src="https://raw.github.com/bestiejs/lodash/v1.0.1/dist/lodash.js">

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
lodash
_.merge(o,e)
pending…
lodash2
_.merge(o,e)
pending…

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

Compare results of other browsers

0 Comments