ES6 Map vs Object properties

JavaScript performance comparison

Revision 253 of this test case created by Camillo Bruni

Preparation code

Benchmark.prototype.setup = function() {
  var map = new Map();
  var obj = {};
  var obj2 = Object.create(null);


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
obj[key] = val; (dict mode)
for (var i=0; i < 10000; i++) {
   var key = 'p' + i;
   obj2[key] = key;


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