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