diff options
author | isaacs <i@izs.me> | 2010-03-08 15:07:06 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-03-08 17:57:38 -0800 |
commit | c488e5775a57391b9b2a8037f849975c0084d05c (patch) | |
tree | 40bf358107c240ad0b4f428b5c94db0884e15e03 /benchmark | |
parent | a38aa02f9f31ab7ace90c737e064bb6f2b78e3cd (diff) | |
download | node-new-c488e5775a57391b9b2a8037f849975c0084d05c.tar.gz |
Remove process.mixin dependencies from benchmark scripts
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/http_simple.js | 3 | ||||
-rw-r--r-- | benchmark/process_loop.js | 3 | ||||
-rw-r--r-- | benchmark/run.js | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/benchmark/http_simple.js b/benchmark/http_simple.js index 8bfc097244..b83c2c9430 100644 --- a/benchmark/http_simple.js +++ b/benchmark/http_simple.js @@ -3,7 +3,8 @@ path = require("path"); libDir = path.join(path.dirname(__filename), "../lib"); require.paths.unshift(libDir); -process.mixin(require("sys")); +var sys = (require("sys")); +for (var i in sys) global[i] = sys[i]; http = require("http"); fixed = "" diff --git a/benchmark/process_loop.js b/benchmark/process_loop.js index 372a89cf34..0ee61b76a2 100644 --- a/benchmark/process_loop.js +++ b/benchmark/process_loop.js @@ -1,7 +1,8 @@ var path = require("path"); libDir = path.join(path.dirname(__filename), "../lib"); require.paths.unshift(libDir); -process.mixin(require("sys")); +var sys = (require("sys")); +for (var i in sys) global[i] = sys[i]; function next (i) { if (i <= 0) return; diff --git a/benchmark/run.js b/benchmark/run.js index 8466b9760f..60b7752c7a 100644 --- a/benchmark/run.js +++ b/benchmark/run.js @@ -1,7 +1,8 @@ var path = require("path"); libDir = path.join(path.dirname(__filename), "../lib"); require.paths.unshift(libDir); -process.mixin(require("sys")); +var sys = (require("sys")); +for (var i in sys) global[i] = sys[i]; var benchmarks = [ "static_http_server.js" , "timers.js" , "process_loop.js" |