aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/benchmarks/fromDate.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/benchmarks/fromDate.js')
-rw-r--r--library/moment/benchmarks/fromDate.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/library/moment/benchmarks/fromDate.js b/library/moment/benchmarks/fromDate.js
new file mode 100644
index 000000000..613061c4d
--- /dev/null
+++ b/library/moment/benchmarks/fromDate.js
@@ -0,0 +1,12 @@
+var Benchmark = require('benchmark'),
+ moment = require('./../moment.js'),
+ base = new Date();
+
+module.exports = {
+ name: 'fromDate',
+ onComplete: function(){},
+ fn: function(){
+ moment(base);
+ },
+ async: true
+};