Skip to content

Commit c488e57

Browse files
isaacsry
authored andcommitted
Remove process.mixin dependencies from benchmark scripts
1 parent a38aa02 commit c488e57

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

benchmark/http_simple.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ path = require("path");
33
libDir = path.join(path.dirname(__filename), "../lib");
44
require.paths.unshift(libDir);
55

6-
process.mixin(require("sys"));
6+
var sys = (require("sys"));
7+
for (var i in sys) global[i] = sys[i];
78
http = require("http");
89

910
fixed = ""

benchmark/process_loop.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
var path = require("path");
22
libDir = path.join(path.dirname(__filename), "../lib");
33
require.paths.unshift(libDir);
4-
process.mixin(require("sys"));
4+
var sys = (require("sys"));
5+
for (var i in sys) global[i] = sys[i];
56
function next (i) {
67
if (i <= 0) return;
78

benchmark/run.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
var path = require("path");
22
libDir = path.join(path.dirname(__filename), "../lib");
33
require.paths.unshift(libDir);
4-
process.mixin(require("sys"));
4+
var sys = (require("sys"));
5+
for (var i in sys) global[i] = sys[i];
56
var benchmarks = [ "static_http_server.js"
67
, "timers.js"
78
, "process_loop.js"

0 commit comments

Comments
 (0)