From bbed17640f84e56aaea06c6d4eb7d04952957fce Mon Sep 17 00:00:00 2001 From: Marak Squires Date: Wed, 11 Aug 2010 17:42:33 -0400 Subject: [PATCH] [docs] added benchmarks --- benchmarks/ReadMe | 3 ++ benchmarks/http-server-base | 56 +++++++++++++++++++++++++++++++++++++ benchmarks/proxy-to-http | 56 +++++++++++++++++++++++++++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 benchmarks/ReadMe create mode 100644 benchmarks/http-server-base create mode 100644 benchmarks/proxy-to-http diff --git a/benchmarks/ReadMe b/benchmarks/ReadMe new file mode 100644 index 0000000..97f5949 --- /dev/null +++ b/benchmarks/ReadMe @@ -0,0 +1,3 @@ +Benchmarks are being run on a development laptop using apache ab (everything running locally, on one machine) + +These benchmarks should not be considered very accurate, or indicative of actual results. There are numerous factors that could cause these numbers to be inaccurate. These benchmarks should only be considered a very basic baseline to determine changes in performance as we iterate on this project. \ No newline at end of file diff --git a/benchmarks/http-server-base b/benchmarks/http-server-base new file mode 100644 index 0000000..e047e4a --- /dev/null +++ b/benchmarks/http-server-base @@ -0,0 +1,56 @@ + [Marak@Maraks-MacBook-Pro ~/dev/zalgo.js]$ ab -c 50 -n 1000 -k http://127.0.0.1:9000/ +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 127.0.0.1 (be patient) +Completed 100 requests +Completed 200 requests +Completed 300 requests +Completed 400 requests +Completed 500 requests +Completed 600 requests +Completed 700 requests +Completed 800 requests +Completed 900 requests +Completed 1000 requests +Finished 1000 requests + + +Server Software: +Server Hostname: 127.0.0.1 +Server Port: 9000 + +Document Path: / +Document Length: 149 bytes + +Concurrency Level: 50 +Time taken for tests: 0.178 seconds +Complete requests: 1000 +Failed requests: 0 +Write errors: 0 +Keep-Alive requests: 0 +Total transferred: 213213 bytes +HTML transferred: 149149 bytes +Requests per second: 5627.84 [#/sec] (mean) +Time per request: 8.884 [ms] (mean) +Time per request: 0.178 [ms] (mean, across all concurrent requests) +Transfer rate: 1171.81 [Kbytes/sec] received + +Connection Times (ms) + min mean[+/-sd] median max +Connect: 0 1 0.9 1 5 +Processing: 3 8 2.6 7 17 +Waiting: 1 7 2.4 7 17 +Total: 5 9 2.4 8 17 + +Percentage of the requests served within a certain time (ms) + 50% 8 + 66% 9 + 75% 9 + 80% 10 + 90% 13 + 95% 14 + 98% 15 + 99% 16 + 100% 17 (longest request) diff --git a/benchmarks/proxy-to-http b/benchmarks/proxy-to-http new file mode 100644 index 0000000..3d2bc33 --- /dev/null +++ b/benchmarks/proxy-to-http @@ -0,0 +1,56 @@ + [Marak@Maraks-MacBook-Pro ~]$ ab -c 5 -n 1000 http://127.0.0.1:8000/ +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 127.0.0.1 (be patient) +Completed 100 requests +Completed 200 requests +Completed 300 requests +Completed 400 requests +Completed 500 requests +Completed 600 requests +Completed 700 requests +Completed 800 requests +Completed 900 requests +Completed 1000 requests +Finished 1000 requests + + +Server Software: +Server Hostname: 127.0.0.1 +Server Port: 8000 + +Document Path: / +Document Length: 155 bytes + +Concurrency Level: 5 +Time taken for tests: 0.602 seconds +Complete requests: 1000 +Failed requests: 5 + (Connect: 0, Receive: 0, Length: 5, Exceptions: 0) +Write errors: 0 +Total transferred: 247030 bytes +HTML transferred: 155030 bytes +Requests per second: 1660.64 [#/sec] (mean) +Time per request: 3.011 [ms] (mean) +Time per request: 0.602 [ms] (mean, across all concurrent requests) +Transfer rate: 400.61 [Kbytes/sec] received + +Connection Times (ms) + min mean[+/-sd] median max +Connect: 0 0 0.1 0 1 +Processing: 2 3 0.8 3 10 +Waiting: 2 3 0.8 3 10 +Total: 2 3 0.8 3 10 + +Percentage of the requests served within a certain time (ms) + 50% 3 + 66% 3 + 75% 3 + 80% 3 + 90% 3 + 95% 4 + 98% 5 + 99% 9 + 100% 10 (longest request)