Permalink
Browse files

benchmarks from sending a giant file from memory

  • Loading branch information...
1 parent 397749e commit b625f516292e9036c3a9f82dd0864aaa6618fd3c @substack committed Dec 15, 2012
Showing with 91 additions and 0 deletions.
  1. +5 −0 bench/bench.js
  2. +43 −0 bench/results/big_bouncy_2.0.0.txt
  3. +43 −0 bench/results/big_http-proxy_0.8.5.txt
View
@@ -3,11 +3,16 @@ 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);
+ }),
}[process.argv[2]];
server.listen(p1);
@@ -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: 7500
+
+Document Path: /
+Document Length: 4194304 bytes
+
+Concurrency Level: 10
+Time taken for tests: 131.492 seconds
+Complete requests: 5000
+Failed requests: 0
+Write errors: 0
+Total transferred: 20971895000 bytes
+HTML transferred: 20971520000 bytes
+Requests per second: 38.03 [#/sec] (mean)
+Time per request: 262.985 [ms] (mean)
+Time per request: 26.298 [ms] (mean, across all concurrent requests)
+Transfer rate: 155753.29 [Kbytes/sec] received
+
+Connection Times (ms)
+ min mean[+/-sd] median max
+Connect: 0 0 0.6 0 13
+Processing: 133 262 27.7 257 427
+Waiting: 25 66 14.9 65 144
+Total: 133 263 27.8 257 427
+
+Percentage of the requests served within a certain time (ms)
+ 50% 257
+ 66% 268
+ 75% 275
+ 80% 279
+ 90% 293
+ 95% 317
+ 98% 349
+ 99% 364
+ 100% 427 (longest request)
@@ -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: 7500
+
+Document Path: /
+Document Length: 4194304 bytes
+
+Concurrency Level: 10
+Time taken for tests: 136.163 seconds
+Complete requests: 5000
+Failed requests: 0
+Write errors: 0
+Total transferred: 20971895000 bytes
+HTML transferred: 20971520000 bytes
+Requests per second: 36.72 [#/sec] (mean)
+Time per request: 272.327 [ms] (mean)
+Time per request: 27.233 [ms] (mean, across all concurrent requests)
+Transfer rate: 150410.37 [Kbytes/sec] received
+
+Connection Times (ms)
+ min mean[+/-sd] median max
+Connect: 0 0 0.2 0 8
+Processing: 165 272 26.3 268 493
+Waiting: 19 71 18.0 70 184
+Total: 165 272 26.3 268 493
+
+Percentage of the requests served within a certain time (ms)
+ 50% 268
+ 66% 278
+ 75% 285
+ 80% 290
+ 90% 305
+ 95% 320
+ 98% 343
+ 99% 357
+ 100% 493 (longest request)

0 comments on commit b625f51

Please sign in to comment.