Update http benchmark script to new url api.
authorRyan Dahl <ry@tinyclouds.org>
Mon, 11 Jan 2010 07:00:58 +0000 (23:00 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 11 Jan 2010 07:00:58 +0000 (23:00 -0800)
benchmark/http_simple.js

index 1cd6124..37429bf 100644 (file)
@@ -14,7 +14,7 @@ for (var i = 0; i < 20*1024; i++) {
 stored = {};
 
 http.createServer(function (req, res) {
-  var commands = req.uri.path.split("/");
+  var commands = req.url.split("/");
   var command = commands[1];
   var body = "";
   var arg = commands[2];