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