From 38acabfa6089ab8ac469c12b5f55022fb96935e5 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 23 Aug 2021 16:46:06 -0300 Subject: added web vendors --- date-fns/src/isThisQuarter/benchmark.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 date-fns/src/isThisQuarter/benchmark.js (limited to 'date-fns/src/isThisQuarter/benchmark.js') 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() + } + } +) -- cgit v1.2.3