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

import eachWeekendOfMonth from '.'

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