summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-02-11 23:04:29 -0800
committerisaacs <i@izs.me>2013-02-19 14:14:37 -0800
commit7d517458278bd364935e58abcae0944ea0766157 (patch)
tree210edc3bffbfb69de5dc32f7e5de10a5c9bc3710
parent0a406869df990d030d2383abc7f1388aead57d0c (diff)
downloadnodejs-7d517458278bd364935e58abcae0944ea0766157.tar.gz
nodejs-7d517458278bd364935e58abcae0944ea0766157.tar.bz2
nodejs-7d517458278bd364935e58abcae0944ea0766157.zip
bench: Remove old run script
-rw-r--r--benchmark/run.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/benchmark/run.js b/benchmark/run.js
deleted file mode 100644
index 289168737..000000000
--- a/benchmark/run.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var path = require("path");
-var util = require("util");
-var childProcess = require("child_process");
-var benchmarks = [ "timers.js"
- , "process_loop.js"
- , "static_http_server.js"
- ];
-
-var benchmarkDir = path.dirname(__filename);
-
-function exec (script, callback) {
- var start = new Date();
- var child = childProcess.spawn(process.argv[0], [path.join(benchmarkDir, script)]);
- child.addListener("exit", function (code) {
- var elapsed = new Date() - start;
- callback(elapsed, code);
- });
-}
-
-function runNext (i) {
- if (i >= benchmarks.length) return;
- util.print(benchmarks[i] + ": ");
- exec(benchmarks[i], function (elapsed, code) {
- if (code != 0) {
- console.log("ERROR ");
- }
- console.log(elapsed);
- runNext(i+1);
- });
-};
-runNext(0);