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