In every test I've ever seen, equivalent code runs slightly faster under mod_perl than PHP. Are you saying that you ran it under mod_perl and it wasn't much faster? That means you're either not really running it through mod_perl, or there is something slow about the way you wrote it in Perl. Show us your httpd.conf file and your code and we can help.