object-assign

Benchmark created by novaline on


Preparation HTML

<script src="https://cdn.bootcss.com/seamless-immutable/7.1.1/seamless-immutable.production.min.js"></script>

Setup

var base = {status: "good", hypothesis: "plausible", errors: 0};
  var ext = {status: "funky", hypothesis: "confirmed"};
  
  var num = 1;

Test runner

Ready to run.

Testing in
TestOps/sec
seamless-immutable-without-deep-merge
var obj = Immutable(base);
var final = Immutable.merge(obj, ext, {deep: false});
ready
seamless-immutable
var obj = Immutable(base);
var final = Immutable.merge(obj, ext);
ready
object-assign
var final = Object.assign({}, base, ext);
ready

Revisions

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

  • Revision 1: published by novaline on