Browse Source

Remove process.mixin dependencies from benchmark scripts

v0.7.4-release
isaacs 15 years ago
committed by Ryan Dahl
parent
commit
c488e5775a
  1. 3
      benchmark/http_simple.js
  2. 3
      benchmark/process_loop.js
  3. 3
      benchmark/run.js

3
benchmark/http_simple.js

@ -3,7 +3,8 @@ path = require("path");
libDir = path.join(path.dirname(__filename), "../lib"); libDir = path.join(path.dirname(__filename), "../lib");
require.paths.unshift(libDir); require.paths.unshift(libDir);
process.mixin(require("sys")); var sys = (require("sys"));
for (var i in sys) global[i] = sys[i];
http = require("http"); http = require("http");
fixed = "" fixed = ""

3
benchmark/process_loop.js

@ -1,7 +1,8 @@
var path = require("path"); var path = require("path");
libDir = path.join(path.dirname(__filename), "../lib"); libDir = path.join(path.dirname(__filename), "../lib");
require.paths.unshift(libDir); require.paths.unshift(libDir);
process.mixin(require("sys")); var sys = (require("sys"));
for (var i in sys) global[i] = sys[i];
function next (i) { function next (i) {
if (i <= 0) return; if (i <= 0) return;

3
benchmark/run.js

@ -1,7 +1,8 @@
var path = require("path"); var path = require("path");
libDir = path.join(path.dirname(__filename), "../lib"); libDir = path.join(path.dirname(__filename), "../lib");
require.paths.unshift(libDir); 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" var benchmarks = [ "static_http_server.js"
, "timers.js" , "timers.js"
, "process_loop.js" , "process_loop.js"

Loading…
Cancel
Save