Will's blog

purpose: Will Kahn-Greene's blog of Miro, PyBlosxom, Python, GNU/Linux, random content, PyBlosxom, Miro, and other projects mixed in there ad hoc, half-baked, and with a twist of lemon

[ home | blog home | recent activity ]

Sat, 26 Mar 2005

PyBlosxom 1.2 released

Seems like it's ok so far. So I released it rather than continuing to sit on it. I've done a lot of work on the manual to cover the areas that were covered poorly or not covered at all. There's still a lot of material to cover, but we're definitely making measurable progress in that direction.

Steven Armstrong did a lot of work to get mod_python, WSGI, and Twisted supported. I'm not sure why anyone would use WSGI or Twisted, though, since they don't appear to make much difference in how fast PyBlosxom works. mod_python definitely helps, though. Steven has some runtime statistics here.

This feels like a good release. We met some goals, we didn't sit on it forever, the documentation is an order of magnitude better than it was for the previous version (though it has a long way to go, still), and we fixed a bunch of bugs.

Having said that, it's definitely not necessary for people to upgrade. I think if your blog works and you don't need to futz with it to get additional functionality, leave well enough alone.

Comments:

Posted by Phillip J. Eby on Sun Mar 27 01:17:08 2005
Just an FYI; WSGI isn't a web server, so it won't make anything faster.  The timings referenced say that they used WSGI-CGI, which means the timings are going to be the same as CGI.  If they had timed WSGI with mod_python, the timings would be about the same as with plain mod_python.  WSGI's just a way of connecting to a web server.  Note also that if you had only implemented WSGI, there are Twisted and mod_python runners for WSGI, so it wouldn't be necessary to write specific support for mod_python or Twisted.

I am surprised that Twisted wasn't closer to mod_python in speed, though.  Perhaps someone could post more details about the benchmarking setup.


Posted by Jack Diederich on Tue Mar 29 00:57:08 2005
That benchmark is hiding a lot of information. Thankfully the apache folks have an easy way to get it all.  Look for 'ab' in the apache bin directory, you can set the number of pages, concurrency, and loots of other stuff.  It will report oodles more than you care about but the min/mean/max times and throughput are all there.

I use both mod_python and twisted.  mod_python is an instant boost for apps originally writen as CGIs, but if you can't make it run five times faster on twisted you weren't really trying (for single or dual CPU boxes, I have no experience running either on big iron).


Posted by Steven Armstrong on Tue Mar 29 11:28:21 2005
(refering to: http://thread.gmane.org/gmane.comp.web.pyblosxom.devel/1397)
The server-side code used in the test is the same as is in the pyblosxom CVS now.
CGI  >> /pyblosxom/web/pyblosxom.cgi
WSGI_CGI  >> /pyblosxom/web/pyblosxom_wsgi.cgi
twisted  >> /pyblosxom/web/pyblosxom.tac
mod_python >> /pyblosxom/web/wsgi_app.py

Where WSGI_CGI, twisted and mod_python all run the same program, namely wsgi_app.py. They all use server dependant wrappers/connectors to setup
a WSGI compliant environment. Read the source for further infos and dependency listings.

Maybe twisted wasn't closer in speed to mod_python cause pyblosxom isn't a async application? It wasn't designed for twisted and runs in seperat threads. Don't know though, I don't know much about twisted. I just set it up as a 'proof of concept' for the pyblosxom WSGI application.


Post a new comment:

Three things:

  1. New comments get placed in a "draft" status and will NOT show up on the site until I explicitly approve it. Sometimes that happens within 24 hours.
  2. I reserve the right to reject/remove inappropriate comments.
  3. Sometimes I'll reply to a comment directly in email--so make sure your email address is correct.

If you can't for some reason post a comment, send me an email: willg at bluesock dot org.

Your name:


Your e-mail address (this doesn't get displayed to anyone--sometimes I'll reply directly to you):


URL of your website (optional):


Comment:


Yes, I am a human!


pyblosxom::1.5-dev git-master

Copyright 1996 to 2012, Will Guaraldi Kahn-Greene, under the Creative Commons BY-SA 3.0 license

Creative Commons License
Will's Blog by William Kahn-Greene is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.