Literal vs Object.create(null)

Edit on GitHub

Object: literal vs Object.create(null) - which is faster?

Setup

Tests

  • Literal

    var a = {};
  • Object.create(null)

    var a = Object.create(null);