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