If you re not using an ORM in PHP you should not use the SQLAlchemy ORM or SQL-Expression language either but use raw SQL commands. If you re using APC you should make sure that Python has write privileges to the folder your application is in, or that the .py files are precompiled.
此外,如果您正在使用Smarty缓存,请考虑启用Mako缓存以公平起见。
However there is a catch: the Python MySQL adapter is incredible bad. For the database connections you will probably notice either slow performance (if SQLAlchemy performs the unicode decoding for itself) or it leaks memory (if the MySQL adapter does that).
PHP没有Unicode支持,因此您不会遇到这两个问题。因此,为了保持公正,您需要在数据库连接中禁用Unicode(不过这是一个极为糟糕的想法)。
所以,似乎没有一种公平的比较PHP和Pylons的方式 :)