News for hackers. Stuff that matters.
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?
Re:Web Framework Benchmarks Round 4 by Joeri on Thursday May 02, 2013 @03:42PM (#5646692)
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.

Re:Web Framework Benchmarks Round 4 by rorrr2 on Thursday May 02, 2013 @05:27PM (#5647308)
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.