summaryrefslogtreecommitdiff
path: root/date-fns/src/lastDayOfDecade/benchmark.js
blob: c683eca07358d8a7cbde662cba88d55d9bf0485d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// @flow
/* eslint-env mocha */
/* global suite, benchmark */

import lastDayOfDecade from '.'

suite('lastDayOfYear', function () {
  benchmark('date-fns', function () {
    return lastDayOfDecade(this.date)
  })
}, {
  setup: function () {
    this.date = new Date()
  }
})