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

import isSaturday from '.'

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