News for hackers. Stuff that matters.
Re:Web Framework Benchmarks Round 2 by giulianob on Friday April 05, 2013 @11:38AM (#5499042)
Did you guys turn on byte code caching for all the PHP frameworks? If not, then I recommend everyone ignore these benchmarks until that is completely done.
Re:Web Framework Benchmarks Round 2 by resu_nimda on Friday April 05, 2013 @12:25PM (#5499374)
So, they've put a ton of effort into this, have been very receptive to community feedback and criticism, and have followed through with a major update to the whole thing. And then you come in with a drive-by recommendation for everyone to ignore the whole thing because of your unfounded and incorrect assumption. Nice work.
Re:Web Framework Benchmarks Round 2 by giulianob on Friday April 05, 2013 @02:35PM (#5500188)
I said that because it was the case with the first version of the benchmark.
Re:Web Framework Benchmarks Round 2 by krg on Friday April 05, 2013 @11:39AM (#5499050)
We did. PHP 5.4.13 with APC, using PHP-FPM, running behind nginx.
Re:Web Framework Benchmarks Round 2 by kainsavage on Friday April 05, 2013 @11:39AM (#5499053)
Yes, we are using APC for all the PHP tests in this round of benchmarking.
Re:Web Framework Benchmarks Round 2 by keammo1 on Friday April 05, 2013 @11:47AM (#5499111)
Is there somewhere we can see the settings for APC?

Thanks for the great work!

Re:Web Framework Benchmarks Round 2 by krg on Friday April 05, 2013 @11:52AM (#5499151)
Re:Web Framework Benchmarks Round 2 by meritt on Friday April 05, 2013 @12:30PM (#5499398)
Having max/min spare servers as the same amount is a bad idea. This is incurs a substantial amount of process swapping, as every single request php-fpm is going to try and ensure there are precisely 256 idle servers.
Re:Web Framework Benchmarks Round 2 by krg on Friday April 05, 2013 @01:38PM (#5499822)
Ok, help us out: Given that we have Wrk set to max out at 256 concurrent requests, what would the ideal tuning for php-fpm? A pull request would be ideal, but you can also just tell us. :)
Re:Web Framework Benchmarks Round 2 by meritt on Friday April 05, 2013 @02:09PM (#5500014)
I'd set minimum idle to something like 16 or 32. php-fpm will not create more than 32 workers/sec.

What happens now is 256 workers running and 256 simultaneous requests occur. So php-fpm sees 256 workers busy, 0 idle. The minimum idle is 256, so it attempts to start 256 additional processes.

Re:Web Framework Benchmarks Round 2 by keammo1 on Friday April 05, 2013 @12:08PM (#5499248)
I could be missing something, but it looks like you are using the default settings. Have you tried tweaking it all? Specifically setting apc.stat=0, which will stop it from checking the mtime. You'll need to clear the cache with apc_clear_cache() when you make code changes though. You may also want to look at apc.php to check for fragmentation and adjust apc.shm_size if necessary
Re:Web Framework Benchmarks Round 2 by ebiester on Friday April 05, 2013 @01:08PM (#5499624)
fork, benchmark, and create a pull request. :)
Re:Web Framework Benchmarks Round 2 by keammo1 on Friday April 05, 2013 @01:31PM (#5499780)
I'm hesitant to just change the config to apc.stat=0, since I can't ensure apc_clear_cache() will be called during deployment

I'll add in apc.php to help make sure other things are tuned properly though. different settings could be appropriate for different servers...