0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 15:06:33 +01:00

Remove process.mixin dependencies from benchmark scripts

This commit is contained in:
isaacs 2010-03-08 15:07:06 -08:00 committed by Ryan Dahl
parent a38aa02f9f
commit c488e5775a
3 changed files with 6 additions and 3 deletions

View File

@ -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 = ""

View File

@ -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;

View File

@ -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"