The RAP rdf netapi is about to be released (Chris is putting the finishing touches to the RAP 0.8). My work on this api has taught me that I like working with python a lot more than I like working with PHP.
Results of 4 runs are:
0.133100032806 Python 0.111065864563 PHP
PHP is consistently faster, sometimes as much as 0.06 sec faster. Personally that's not a big enough speed improvement to warrant me switching all my development to php. Having said that, I need to test DB speed from python cgi vs. pooled connections from php.