ES6 Map vs Object properties (v250)

Revision 250 of this benchmark created by Vladimir Rudenko on


Setup

var map = new Map();
  var obj = {};

Test runner

Ready to run.

Testing in
TestOps/sec
obj[key] = val;
for (var i=0; i < 1000; i++) {
   obj[i+2] = i + 3;
}
ready
map.set(key,val)
for (var i=0; i < 1000; i++) {
   map.set(i+2, i + 3);
}
ready

Revisions

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