aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/benchmarks/fromDate.js
blob: 613061c4dae7342507a12ca6b61da103b6a504fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
var Benchmark = require('benchmark'),
    moment = require('./../moment.js'),
    base = new Date();

module.exports = {
  name: 'fromDate',
  onComplete: function(){},
  fn: function(){
      moment(base);
  },
  async: true
};