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

import lastDayOfYear from '.'

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