common storage for benchmark file details
authoralexlamsl <alexlamsl@gmail.com>
Sat, 13 Feb 2016 18:57:56 +0000 (02:57 +0800)
committeralexlamsl <alexlamsl@gmail.com>
Sat, 13 Feb 2016 18:57:56 +0000 (02:57 +0800)
backtest.js
benchmark.js
benchmarks/index.json [new file with mode: 0644]

index 2a154ab..6b1d6e8 100644 (file)
@@ -6,19 +6,7 @@ var child_process = require('child_process'),
     fs = require('fs'),
     path = require('path');
 
-var urls = {
-  amazon: 'http://www.amazon.com/',
-  eloquentjavascript: 'http://eloquentjavascript.net/print.html',
-  es6: 'https://people.mozilla.org/~jorendorff/es6-draft.html',
-  'es6-table': 'http://kangax.github.io/es5-compat-table/es6/',
-  google: 'http://www.google.com/',
-  'html-minifier': 'https://github.com/kangax/html-minifier',
-  msn: 'http://www.msn.com/',
-  nbc: 'http://www.nbc.com/',
-  newyorktimes: 'http://www.nytimes.com/',
-  stackoverflow: 'http://stackoverflow.com/',
-  wikipedia: 'http://en.wikipedia.org/wiki/President_of_the_United_States'
-};
+var urls = require('./benchmarks');
 var fileNames = Object.keys(urls).sort();
 
 function all(tasks, callback) {
index 41a01b6..e3d6530 100644 (file)
@@ -16,19 +16,7 @@ var brotli = require('brotli'),
     url = require('url'),
     zlib = require('zlib');
 
-var urls = {
-  amazon: 'http://www.amazon.com/',
-  eloquentjavascript: 'http://eloquentjavascript.net/print.html',
-  es6: 'https://people.mozilla.org/~jorendorff/es6-draft.html',
-  'es6-table': 'http://kangax.github.io/es5-compat-table/es6/',
-  google: 'http://www.google.com/',
-  'html-minifier': 'https://github.com/kangax/html-minifier',
-  msn: 'http://www.msn.com/',
-  nbc: 'http://www.nbc.com/',
-  newyorktimes: 'http://www.nytimes.com/',
-  stackoverflow: 'http://stackoverflow.com/',
-  wikipedia: 'http://en.wikipedia.org/wiki/President_of_the_United_States'
-};
+var urls = require('./benchmarks');
 var fileNames = Object.keys(urls).sort();
 
 var minimize = new Minimize();
diff --git a/benchmarks/index.json b/benchmarks/index.json
new file mode 100644 (file)
index 0000000..f5b097f
--- /dev/null
@@ -0,0 +1,13 @@
+{
+  "amazon": "http://www.amazon.com/",
+  "eloquentjavascript": "http://eloquentjavascript.net/print.html",
+  "es6": "https://people.mozilla.org/~jorendorff/es6-draft.html",
+  "es6-table": "http://kangax.github.io/es5-compat-table/es6/",
+  "google": "http://www.google.com/",
+  "html-minifier": "https://github.com/kangax/html-minifier",
+  "msn": "http://www.msn.com/",
+  "nbc": "http://www.nbc.com/",
+  "newyorktimes": "http://www.nytimes.com/",
+  "stackoverflow": "http://stackoverflow.com/",
+  "wikipedia": "http://en.wikipedia.org/wiki/President_of_the_United_States"
+}
\ No newline at end of file