Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
brubeck bench mark - pypy2.0 beta1 vs python2.7

Comparision of pypy2.0 vs python2.7 for demo_minimal.py

pypy-2.0beta1

kracekumar@aadukalam:~/codes/brubeck/brubeck$ siege -u http://localhost:6767/brubeck -c50  -r2

Transactions:                    100 hits
Availability:                 100.00 %
Elapsed time:                   2.06 secs
Data transferred:               0.00 MB
Response time:                  0.01 secs
Transaction rate:              48.54 trans/sec
Throughput:                     0.00 MB/sec
Concurrency:                    0.26
Successful transactions:         100
Failed transactions:               0
Longest transaction:            0.02
Shortest transaction:           0.00

kracekumar@aadukalam:~/codes/brubeck/brubeck$ siege -u http://localhost:6767/brubeck -c50  -r20

Transactions:                   1000 hits
Availability:                 100.00 %
Elapsed time:                  15.20 secs
Data transferred:               0.02 MB
Response time:                  0.01 secs
Transaction rate:              65.79 trans/sec
Throughput:                     0.00 MB/sec
Concurrency:                    0.36
Successful transactions:        1000
Failed transactions:               0
Longest transaction:            0.06
Shortest transaction:           0.00


python2.7

kracekumar@aadukalam:~/codes/brubeck/brubeck$ siege -u http://localhost:6767/brubeck -c50  -r2

Transactions:                    100 hits
Availability:                 100.00 %
Elapsed time:                   2.07 secs
Data transferred:               0.00 MB
Response time:                  0.00 secs
Transaction rate:              48.31 trans/sec
Throughput:                     0.00 MB/sec
Concurrency:                    0.16
Successful transactions:         100
Failed transactions:               0
Longest transaction:            0.01
Shortest transaction:           0.00

kracekumar@aadukalam:~/codes/brubeck/brubeck$ siege -u http://localhost:6767/brubeck -c50  -r20

Transactions:                   1000 hits
Availability:                 100.00 %
Elapsed time:                  14.19 secs
Data transferred:               0.02 MB
Response time:                  0.01 secs
Transaction rate:              70.47 trans/sec
Throughput:                     0.00 MB/sec
Concurrency:                    0.47
Successful transactions:        1000
Failed transactions:               0
Longest transaction:            0.12
Shortest transaction:           0.00

Hardware Info

ubuntu 64 bit 512 MB RAM from hetzner 

Conclusion

Result is CPython is faster than pypy but reason might be zmq used for benchmark is zmqpy==0.1a which is normal zmq without any async. I am happy with results, will be working on to make pypy faster with brubeck feel free to ping me in IRC - kracekumar in freenode, Twitter- kracetheking, contribute and poke me if my work has flaws.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.