Created
May 17, 2012 23:26
-
-
Save codeboost/2722254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go and node running on MacOS Lion, i7, 8GB RAM. | |
ab running on linux in a VirtualBox (on the same machine). | |
Script source code: | |
https://gist.github.com/2722169 | |
ab command line: | |
ab -n 40000 -c 200 -r 192.168.1.104:1337/ | |
Test results: | |
RUN 1: | |
Node version (4 workers): | |
Concurrency Level: 200 | |
Time taken for tests: 21.348 seconds | |
Complete requests: 40000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 3040000 bytes | |
HTML transferred: 480000 bytes | |
Requests per second: 1873.73 [#/sec] (mean) | |
Time per request: 106.739 [ms] (mean) | |
Time per request: 0.534 [ms] (mean, across all concurrent requests) | |
Transfer rate: 139.07 [Kbytes/sec] received | |
GO version: | |
Concurrency Level: 200 | |
Time taken for tests: 47.130 seconds | |
Complete requests: 40000 | |
Failed requests: 2061 | |
(Connect: 0, Receive: 687, Length: 687, Exceptions: 687) | |
Write errors: 0 | |
Total transferred: 3788928 bytes | |
HTML transferred: 552552 bytes | |
Requests per second: 848.71 [#/sec] (mean) | |
Time per request: 235.651 [ms] (mean) | |
Time per request: 1.178 [ms] (mean, across all concurrent requests) | |
Transfer rate: 78.51 [Kbytes/sec] received | |
------------------------------------------------------------------ | |
RUN 2: | |
Node version (4 workers): | |
Concurrency Level: 200 | |
Time taken for tests: 21.262 seconds | |
Complete requests: 40000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 3040000 bytes | |
HTML transferred: 480000 bytes | |
Requests per second: 1881.30 [#/sec] (mean) | |
Time per request: 106.310 [ms] (mean) | |
Time per request: 0.532 [ms] (mean, across all concurrent requests) | |
Transfer rate: 139.63 [Kbytes/sec] received | |
Go version: | |
Concurrency Level: 200 | |
Time taken for tests: 33.212 seconds | |
Complete requests: 40000 | |
Failed requests: 1548 | |
(Connect: 0, Receive: 516, Length: 516, Exceptions: 516) | |
Write errors: 0 | |
Total transferred: 3809280 bytes | |
HTML transferred: 555520 bytes | |
Requests per second: 1204.37 [#/sec] (mean) | |
Time per request: 166.061 [ms] (mean) | |
Time per request: 0.830 [ms] (mean, across all concurrent requests) | |
Transfer rate: 112.01 [Kbytes/sec] received | |
------------------------------------------------------------------ | |
RUN 3: | |
ab -n 40000 -c 50 -r 192.168.1.104:1337/ | |
Restarted both servers. The GO results got worse each run, with more reported errors. After the restart, the test completed successfully. | |
Node version: | |
Concurrency Level: 50 | |
Time taken for tests: 22.270 seconds | |
Complete requests: 40000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 3040000 bytes | |
HTML transferred: 480000 bytes | |
Requests per second: 1796.14 [#/sec] (mean) | |
Time per request: 27.837 [ms] (mean) | |
Time per request: 0.557 [ms] (mean, across all concurrent requests) | |
Transfer rate: 133.31 [Kbytes/sec] received | |
GO version: | |
Concurrency Level: 50 | |
Time taken for tests: 22.302 seconds | |
Complete requests: 40000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 3840000 bytes | |
HTML transferred: 560000 bytes | |
Requests per second: 1793.60 [#/sec] (mean) | |
Time per request: 27.877 [ms] (mean) | |
Time per request: 0.558 [ms] (mean, across all concurrent requests) | |
Transfer rate: 168.15 [Kbytes/sec] received |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment