Skip to content

Instantly share code, notes, and snippets.

@j2labs
Created March 23, 2011 03:16
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j2labs/882555 to your computer and use it in GitHub Desktop.
Save j2labs/882555 to your computer and use it in GitHub Desktop.
# 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
@AlekSi
Copy link

AlekSi commented Nov 3, 2011

Transactions:               9007 hits
Successful transactions:        9007
Failed transactions:               2

O RLY?

@j2labs
Copy link
Author

j2labs commented Nov 3, 2011

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.

@ajdavis
Copy link

ajdavis commented Mar 28, 2012

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

@j2labs
Copy link
Author

j2labs commented Mar 28, 2012 via email

@j2labs
Copy link
Author

j2labs commented Mar 30, 2012

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