Skip to content

Instantly share code, notes, and snippets.

@Yardanico
Last active March 4, 2017 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yardanico/b389b0181656b98f29d53d6387663b8c to your computer and use it in GitHub Desktop.
Save Yardanico/b389b0181656b98f29d53d6387663b8c to your computer and use it in GitHub Desktop.
Python Hug http (runner.sh) benchmark
I changed number of requests from 20,000 to 100,000 to have enough time for PyPy3 to warm-up
PyPy3 results:
Python 3.5.2 (2b8db666aa18, Mar 04 2017, 02:00:12)
[PyPy 5.6.0-alpha0 with GCC 4.8.2] on linux
hug_test:
Requests per second: 22699.22 [#/sec] (mean)
Complete requests: 100000
falcon_test:
Requests per second: 23432.88 [#/sec] (mean)
Complete requests: 100000
flask_test:
<AttributeError: module 'sys' has no attribute 'exc_clear'>
bobo_test:
Requests per second: 15952.33 [#/sec] (mean)
Complete requests: 100000
cherrypy_test:
Requests per second: 7639.01 [#/sec] (mean)
Complete requests: 100000
pyramid_test:
Requests per second: 17192.23 [#/sec] (mean)
Complete requests: 100000
bottle_test:
Requests per second: 23214.78 [#/sec] (mean)
Complete requests: 100000
Python 3.6 results:
Python 3.6.0 (default, Jan 16 2017, 12:12:55)
[GCC 6.3.1 20170109] on linux
hug_test:
Requests per second: 6789.68 [#/sec] (mean)
Complete requests: 100000
falcon_test:
Requests per second: 8452.89 [#/sec] (mean)
Complete requests: 100000
flask_test:
Requests per second: 5343.47 [#/sec] (mean)
Complete requests: 100000
bobo_test:
Requests per second: 6796.65 [#/sec] (mean)
Complete requests: 100000
cherrypy_test:
Requests per second: 3316.20 [#/sec] (mean)
Complete requests: 100000
pyramid_test:
Requests per second: 6135.94 [#/sec] (mean)
Complete requests: 100000
bottle_test:
Requests per second: 7861.45 [#/sec] (mean)
Complete requests: 100000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment