aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/benchmarks/makeDuration.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/benchmarks/makeDuration.js')
-rw-r--r--library/moment/benchmarks/makeDuration.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/library/moment/benchmarks/makeDuration.js b/library/moment/benchmarks/makeDuration.js
new file mode 100644
index 000000000..9c2e8003f
--- /dev/null
+++ b/library/moment/benchmarks/makeDuration.js
@@ -0,0 +1,11 @@
+var Benchmark = require('benchmark'),
+ moment = require('./../moment.js');
+
+module.exports = {
+ name: 'makeDuration',
+ onComplete: function(){},
+ fn: function(){
+ moment.duration(5, 'years');
+ },
+ async: true
+};