PyHP improvements
Thursday, August 14th, 2008 | Web
New features in PyHP this week on the SVN version
- it is now possible to set sessions timeout with PyHPSessionTimeout config variable
- The Result object from the Database Layer is now iterable and will work as performing multiple .fetch() calls
- pyhp.status is now exposed to return a status code different from HTTP_OK (200)
- pyhp.content_type is now exposed to permit serving images and files different from text/html
Also some performance tests has been performed on mod_pyhp in production mode and the results are here available:
Time taken for tests: 1.419409 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Non-2xx responses: 500 (hello_world.pyhp returns 500 on last pyhp)
Total transferred: 1558000 bytes
HTML transferred: 1344000 bytes
Requests per second: 352.26 [#/sec] (mean)
Time per request: 2.839 [ms] (mean)
Time per request: 2.839 [ms] (mean, across all concurrent requests)
Transfer rate: 1071.57 [Kbytes/sec] received
The results reveal to be quite good compared to other popular web development tools like WEBrick, mod_python and mod_php. Still they have a bunch of space for improvement to reach the “standard” ~600req/sec that more mature solutions obtain. Probably .pyhp files caching might be implemented to increase a lot performances.
I will provide a complete comparations to the other major web tools as soon as I have some time to set up a concrete test suite.
Search
Archives
- January 2012
- November 2011
- October 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- September 2010
- August 2010
- July 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- December 2008
- November 2008
- October 2008
- August 2008