aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/benchmarks
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-18 23:56:25 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-18 23:56:25 +0100
commitb23284cba28335f61595f2264685b1bbafc19183 (patch)
tree696cbfc2b5a609c636e0d1d7a3a2f9ad7a302266 /library/moment/benchmarks
parent0c163c4d038a4c26335af1bde366d8ef9e53c464 (diff)
downloadvolse-hubzilla-b23284cba28335f61595f2264685b1bbafc19183.tar.gz
volse-hubzilla-b23284cba28335f61595f2264685b1bbafc19183.tar.bz2
volse-hubzilla-b23284cba28335f61595f2264685b1bbafc19183.zip
move moment.min.js and remove unneeded files
Diffstat (limited to 'library/moment/benchmarks')
-rw-r--r--library/moment/benchmarks/clone.js10
-rw-r--r--library/moment/benchmarks/fromDate.js12
-rw-r--r--library/moment/benchmarks/fromDateUtc.js12
-rw-r--r--library/moment/benchmarks/makeDuration.js11
-rw-r--r--library/moment/benchmarks/zeroFill.js43
5 files changed, 0 insertions, 88 deletions
diff --git a/library/moment/benchmarks/clone.js b/library/moment/benchmarks/clone.js
deleted file mode 100644
index ac516bec2..000000000
--- a/library/moment/benchmarks/clone.js
+++ /dev/null
@@ -1,10 +0,0 @@
-var Benchmark = require('benchmark'),
- moment = require("./../moment.js"),
- base = moment('2013-05-25');
-
-module.exports = {
- name: 'clone',
- onComplete: function(){},
- fn: function(){base.clone();},
- async: true
-};
diff --git a/library/moment/benchmarks/fromDate.js b/library/moment/benchmarks/fromDate.js
deleted file mode 100644
index 613061c4d..000000000
--- a/library/moment/benchmarks/fromDate.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var Benchmark = require('benchmark'),
- moment = require('./../moment.js'),
- base = new Date();
-
-module.exports = {
- name: 'fromDate',
- onComplete: function(){},
- fn: function(){
- moment(base);
- },
- async: true
-};
diff --git a/library/moment/benchmarks/fromDateUtc.js b/library/moment/benchmarks/fromDateUtc.js
deleted file mode 100644
index 37d1a7101..000000000
--- a/library/moment/benchmarks/fromDateUtc.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var Benchmark = require('benchmark'),
- moment = require('./../moment.js'),
- base = new Date();
-
-module.exports = {
- name: 'fromDateUtc',
- onComplete: function(){},
- fn: function(){
- moment.utc(base);
- },
- async: true
-};
diff --git a/library/moment/benchmarks/makeDuration.js b/library/moment/benchmarks/makeDuration.js
deleted file mode 100644
index 9c2e8003f..000000000
--- a/library/moment/benchmarks/makeDuration.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var Benchmark = require('benchmark'),
- moment = require('./../moment.js');
-
-module.exports = {
- name: 'makeDuration',
- onComplete: function(){},
- fn: function(){
- moment.duration(5, 'years');
- },
- async: true
-};
diff --git a/library/moment/benchmarks/zeroFill.js b/library/moment/benchmarks/zeroFill.js
deleted file mode 100644
index 9ce76ee98..000000000
--- a/library/moment/benchmarks/zeroFill.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var Benchmark = require('benchmark');
-
-module.exports = {
- name: 'zeroFill',
- tests: {
- zeroFillMath: {
- setup: function() {
- var zeroFillMath = function(number, targetLength, forceSign) {
- var absNumber = '' + Math.abs(number),
- zerosToFill = targetLength - absNumber.length,
- sign = number >= 0;
- return (sign ? (forceSign ? '+' : '') : '-') +
- Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
- }
- },
- fn: function() {
- zeroFillMath(Math.random() * 1e5 | 0, 5);
- zeroFillMath(Math.random() * 1e5 | 0, 10);
- zeroFillMath(Math.random() * 1e10 | 0, 20);
- },
- async: true
- },
- zeroFillWhile: {
- setup: function() {
- var zeroFillWhile = function(number, targetLength, forceSign) {
- var output = '' + Math.abs(number),
- sign = number >= 0;
-
- while (output.length < targetLength) {
- output = '0' + output;
- }
- return (sign ? (forceSign ? '+' : '') : '-') + output;
- }
- },
- fn: function() {
- zeroFillWhile(Math.random() * 1e5 | 0, 5);
- zeroFillWhile(Math.random() * 1e5 | 0, 10);
- zeroFillWhile(Math.random() * 1e10 | 0, 20);
- },
- async: true
- }
- }
-};