diff options
Diffstat (limited to 'date-fns/src/isWednesday/benchmark.js')
-rw-r--r-- | date-fns/src/isWednesday/benchmark.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/date-fns/src/isWednesday/benchmark.js b/date-fns/src/isWednesday/benchmark.js new file mode 100644 index 0000000..80a6c1e --- /dev/null +++ b/date-fns/src/isWednesday/benchmark.js @@ -0,0 +1,15 @@ +// @flow +/* eslint-env mocha */ +/* global suite, benchmark */ + +import isWednesday from '.' + +suite('isWednesday', function () { + benchmark('date-fns', function () { + return isWednesday(this.date) + }) +}, { + setup: function () { + this.date = new Date() + } +}) |