Date.now vs obj increment

Edit on GitHub

Setup

var obj = { num: 0 };

Tests

  • Date.now

    var test = Date.now();
    
    console.log(test);
  • obj increment

    ++obj.num;
    
    console.log(obj.num);