So this means I should stop using CakePHP?
So this means I should stop using CakePHP I always strongly advise not using CakePHP, purely because its model system is so broken, it makes my teeth itch.
Web Framework Benchmarks
131–140 of 415 posts
Re: Web Framework Benchmarks
#132Most folks who have run Rails at scale, for example, find that the untuned garbage collector in MRI (Ruby's default interpreter) introduces a large amount of variance, for example.
Re: Web Framework Benchmarks
#133Earlier quoted context omitted.
[deleted]
No, they're not. They can run via CGI (so, yes, compiled for each request) but that's slow as ass. They run via Plack/PSGI - they can be deployed in a multitude of ways, including via FastCGI or running standalone using built-in webservers, or via Starman - the latter in particular is very fast indeed. With a simple "hello world" type app, > 6000 requests/sec can be easily handled. Obviously an app of more realistic…
Thanks for the correction though, but that still doesn't answer my original question: how does Plack compare with mod_perl?
Re: Web Framework Benchmarks
#134Re: Web Framework Benchmarks
#135Update:
Looks like passenger in development mode. Good job you benchmarked a web server that no one uses wile reloading all code between requests.
Update2:
Ok it seems to run in production mode but still, passenger is not an idiomatic choice.
Re: Web Framework Benchmarks
#136Re: Web Framework Benchmarks
#137I would love to see php-fpm on nginx included in this test.
Re: Web Framework Benchmarks
#138Earlier quoted context omitted.
Webgo... I'll stick with "net/http" and Gorilla thanks. Also, They used Go 1.0.3... I hope they update to 1.1 next month. Most everyone using Go for intensive production uses is using Go tip (which is the branch due to become 1.1 RC next month)
Wow, directly on tip? That seems to speak very highly of the day-to-day development stability of Go.
Re: Web Framework Benchmarks
#139Earlier quoted context omitted.
So this means I should stop using CakePHP I always strongly advise not using CakePHP, purely because its model system is so broken, it makes my teeth itch.
How is it broken?
All data is returned as an associative array, so there is no way to call something like:
$cows = $this->Cows->findByStatus(COW_STATUS_NOT_MOOING);
foreach($cows as $cow)
{
$cow->moo();
}
But that's pretty minor.The big issue is: all data is returned as an associate array! There is no lazy-loading of the data as you e.g. seek through it, which means it's very easy for people to pass around huge arrays with thousands upon thousands of rows and associations without even thinking about it.
/rant over
Re: Web Framework Benchmarks
#140What's the difference between "php" and "php-raw" in some of the data? Maybe I'm still in my morning fog, but having trouble thinking of what "php-raw" might mean. Sigh.
The code says php-raw refers to using PDO (which all project should be using) vs using an ORM or ActiveRecord. I am completely stunned by the performance cost of using ORM/AR, and will be using this to shame our team lead into giving it up and going for raw queries.