Skip to content

Commit

Permalink
Remove process.mixin dependencies from benchmark scripts
Browse files Browse the repository at this point in the history
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

isaacs authored and ry committed Mar 9, 2010
1 parent a38aa02 commit c488e57
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion benchmark/http_simple.js
Original file line number Diff line number Diff line change
@@ -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 = ""
3 changes: 2 additions & 1 deletion benchmark/process_loop.js
Original file line number Diff line number Diff line change
@@ -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;

3 changes: 2 additions & 1 deletion benchmark/run.js
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit c488e57

Please sign in to comment.