Permalink
Browse files

results including the raw http server with no hops

  • Loading branch information...
1 parent b625f51 commit ae0ec85a88d49d7146eb1854f7e41d809e8132a1 @substack committed Dec 15, 2012
Showing with 97 additions and 7 deletions.
  1. +11 −7 bench/bench.js
  2. +43 −0 bench/results/big_core-http_0.8.12.txt
  3. +43 −0 bench/results/simple_core-http_0.8.12.txt
View
18 bench/bench.js
@@ -3,21 +3,25 @@ var http = require('http');
var p0 = 7500;
var p1 = 7501;
-var giganticBuffer = new Buffer(1024 * 1024 * 4); // 4M buffer
-
var name = process.argv[3];
var server = {
simple : http.createServer(function (req, res) {
res.end('beepity boop');
}),
- big : http.createServer(function (req, res) {
- res.end(giganticBuffer);
- }),
+ big : (function () {
+ var giganticBuffer = new Buffer(1024 * 1024 * 4);
+
+ return http.createServer(function (req, res) {
+ res.end(giganticBuffer);
+ })
+ })(),
}[process.argv[2]];
server.listen(p1);
-var proxy = require('./' + name)(p1);
-proxy.listen(p0);
+if (name) {
+ var proxy = require('./' + name)(p1);
+ proxy.listen(p0);
+}
console.log('ab -n 5000 -c 10 http://localhost:' + p0 + '/');
View
43 bench/results/big_core-http_0.8.12.txt
@@ -0,0 +1,43 @@
+This is ApacheBench, Version 2.3 <$Revision: 655654 $>
+Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
+Licensed to The Apache Software Foundation, http://www.apache.org/
+
+Benchmarking localhost (be patient)
+
+
+Server Software:
+Server Hostname: localhost
+Server Port: 7501
+
+Document Path: /
+Document Length: 4194304 bytes
+
+Concurrency Level: 10
+Time taken for tests: 36.908 seconds
+Complete requests: 5000
+Failed requests: 0
+Write errors: 0
+Total transferred: 20971895000 bytes
+HTML transferred: 20971520000 bytes
+Requests per second: 135.47 [#/sec] (mean)
+Time per request: 73.816 [ms] (mean)
+Time per request: 7.382 [ms] (mean, across all concurrent requests)
+Transfer rate: 554903.05 [Kbytes/sec] received
+
+Connection Times (ms)
+ min mean[+/-sd] median max
+Connect: 0 0 0.2 0 4
+Processing: 37 73 14.6 73 160
+Waiting: 0 7 5.9 6 33
+Total: 37 74 14.7 73 160
+
+Percentage of the requests served within a certain time (ms)
+ 50% 73
+ 66% 83
+ 75% 85
+ 80% 85
+ 90% 87
+ 95% 96
+ 98% 107
+ 99% 116
+ 100% 160 (longest request)
View
43 bench/results/simple_core-http_0.8.12.txt
@@ -0,0 +1,43 @@
+This is ApacheBench, Version 2.3 <$Revision: 655654 $>
+Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
+Licensed to The Apache Software Foundation, http://www.apache.org/
+
+Benchmarking localhost (be patient)
+
+
+Server Software:
+Server Hostname: localhost
+Server Port: 7501
+
+Document Path: /
+Document Length: 12 bytes
+
+Concurrency Level: 10
+Time taken for tests: 1.955 seconds
+Complete requests: 5000
+Failed requests: 0
+Write errors: 0
+Total transferred: 435000 bytes
+HTML transferred: 60000 bytes
+Requests per second: 2558.10 [#/sec] (mean)
+Time per request: 3.909 [ms] (mean)
+Time per request: 0.391 [ms] (mean, across all concurrent requests)
+Transfer rate: 217.34 [Kbytes/sec] received
+
+Connection Times (ms)
+ min mean[+/-sd] median max
+Connect: 0 0 0.4 0 11
+Processing: 0 4 2.7 3 29
+Waiting: 0 3 2.7 3 29
+Total: 1 4 2.7 3 29
+
+Percentage of the requests served within a certain time (ms)
+ 50% 3
+ 66% 4
+ 75% 5
+ 80% 5
+ 90% 6
+ 95% 8
+ 98% 13
+ 99% 16
+ 100% 29 (longest request)

0 comments on commit ae0ec85

Please sign in to comment.