text: // @flow
  /* eslint-env mocha */
  /* global suite, benchmark */
  
  import subDays from '.'
  import moment from 'moment'
  
  suite('subDays', function () {
    benchmark('date-fns', function () {
      return subDays(this.date, 14)
    })
  
    benchmark('Moment.js', function () {
      return this.moment.subtract(14, 'days')
    })
  }, {
    setup: function () {
      this.date = new Date()
      this.moment = moment()
    }
  })
  