Immutable-JS-maps

Benchmark created by Angel 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["key"+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.