Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I thought everyone hating PHP ( also) because it was slow

Most of the replies here are stating that PHP is fast. It can be for these kind of benchmarks.

But, it does have the reputation you're suggesting. That reputation, though, is based on the old CGI model. Most php apps are built in a way that all of the initiation and setup code is run for every single request. That makes it comparatively slow.

Some PHP apps get around that by using a shared memory cache, like apcu, to box around that. That helps a lot, but isn't the same as a typical golang or node.js app where startup code is truly run once, and new requests go through a much shorter path.

All of that, though, is less a "language" thing and more of a runtime thing. You can, for example, use Facebook's HHVM+Proxygen and run PHP code in the exact same way as node.js.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: