Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:882555
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# All of this testing was done on an AWS m1.large with a single Python
# process. I ran the commands multiple times and the numbers below are
# typical of the behavior, though they are the results of two particular
# cases
 
# Brubeck with Gevent
 
$ siege -c500 -t10s localhost:6767/brubeck
 
Lifting the server siege... done.
Transactions: 9187 hits
Availability: 100.00 %
Elapsed time: 10.03 secs
Data transferred: 0.14 MB
Response time: 0.02 secs
Transaction rate: 915.95 trans/sec
Throughput: 0.01 MB/sec
Concurrency: 15.72
Successful transactions: 9189
Failed transactions: 0
Longest transaction: 0.43
Shortest transaction: 0.00
 
 
# Tornado
 
$ siege -c500 -t10s localhost:8000
 
Lifting the server siege... done.
Transactions: 7831 hits
Availability: 100.00 %
Elapsed time: 9.44 secs
Data transferred: 0.12 MB
Response time: 0.08 secs
Transaction rate: 829.56 trans/sec
Throughput: 0.01 MB/sec
Concurrency: 62.48
Successful transactions: 7831
Failed transactions: 0
Longest transaction: 3.09
Shortest transaction: 0.00
Transactions:               9007 hits
Successful transactions:        9007
Failed transactions:               2

O RLY?

Owner

Hmm... that test is due for an update with gevent so I'll replace that soon.

I'll have to check with Siege as to why that would happen.

Neat! What are the webservers actually serving? Hello world?

Owner
Owner

I have updated the gist to use gevent and we now see a 15% performance difference. It's still just hello world. Both systems returning 16 bytes of data as the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.