Immutable-JS-maps (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/immutable/3.7.3/immutable.min.js"></script>

Setup

var data = {}
        for (var i = 0; i < 1000; i++) {
          data["literal"+i] = Math.random()
        }
        
        var dataMap = new Immutable.Map(data)

Test runner

Ready to run.

Testing in
TestOps/sec
With Merge
dataMap.merge({a: 2})
ready
With Set
dataMap.set("a", 2)
ready

Revisions

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