summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2009-10-25 22:51:10 +0100
committerRyan Dahl <ry@tinyclouds.org>2009-10-25 22:51:57 +0100
commit04e53cab90d14ee668e7e63e54a8ef9f4a8b564d (patch)
treeea0b403d10bdbd3d4ecc447b92b55797062af584 /benchmark
parent4bcb01c8bf6ec1074592a691cbadd2dc50ead35a (diff)
downloadnode-new-04e53cab90d14ee668e7e63e54a8ef9f4a8b564d.tar.gz
Rename node.libraryPaths to require.paths
to be more inline with CommonJS.
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/http_simple.js2
-rw-r--r--benchmark/process_loop.js2
-rw-r--r--benchmark/run.js2
-rw-r--r--benchmark/static_http_server.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/benchmark/http_simple.js b/benchmark/http_simple.js
index 8974af647c..43435ad5bc 100644
--- a/benchmark/http_simple.js
+++ b/benchmark/http_simple.js
@@ -1,5 +1,5 @@
libDir = node.path.join(node.path.dirname(__filename), "../lib");
-node.libraryPaths.unshift(libDir);
+require.paths.unshift(libDir);
node.mixin(require("/utils.js"));
http = require("/http.js");
diff --git a/benchmark/process_loop.js b/benchmark/process_loop.js
index 6f4d07ea94..494074a9cf 100644
--- a/benchmark/process_loop.js
+++ b/benchmark/process_loop.js
@@ -1,5 +1,5 @@
libDir = node.path.join(node.path.dirname(__filename), "../lib");
-node.libraryPaths.unshift(libDir);
+require.paths.unshift(libDir);
node.mixin(require("/utils.js"));
function next (i) {
if (i <= 0) return;
diff --git a/benchmark/run.js b/benchmark/run.js
index 6379a16fe2..965022b3f9 100644
--- a/benchmark/run.js
+++ b/benchmark/run.js
@@ -1,5 +1,5 @@
libDir = node.path.join(node.path.dirname(__filename), "../lib");
-node.libraryPaths.unshift(libDir);
+require.paths.unshift(libDir);
node.mixin(require("/utils.js"));
var benchmarks = [ "static_http_server.js"
, "timers.js"
diff --git a/benchmark/static_http_server.js b/benchmark/static_http_server.js
index 3ce04997f0..1866051106 100644
--- a/benchmark/static_http_server.js
+++ b/benchmark/static_http_server.js
@@ -1,5 +1,5 @@
libDir = node.path.join(node.path.dirname(__filename), "../lib");
-node.libraryPaths.unshift(libDir);
+require.paths.unshift(libDir);
http = require("/http.js");
var concurrency = 30;
var port = 8000;