Re:Web Framework Benchmarks Round 4
by oberhamsi on Thursday May 02, 2013 @01:21PM
(#5645903)
Is there no php environment with a persistent server? Are they really all doing per request startup?
[ Parent
| on HN ]
Yes. The PHP process keeps running but resets completely on every request. The bytecode is cached though, so loading the code shouldn't add much overhead.
PHP can be used for long-running jobs, but it doesn't have very good garbage collection, and has no language-level concurrency and very little asynchronicity.
Well, you could daemonize a PHP process, which would listen to some port, and parse the requests. It's like implementing your web server in PHP.
The problem with it is, one request can bring the whole thing down.