Date now vs Incrementing object lookup

Edit on GitHub

Setup

var obj = {
num: 0,
}

Tests

  • Date now

    var test = Date.now();
  • Incrementing object lookup

    var test = ++obj.num;