Am 07.07.2007 um 15:43 schrieb Liutauras: > Hi all, > > i want to speed up agavi app and reach >500 requests per second. > use database is false, > development is false, > page execution time filter shows about 0.08s > > When i set use_translation == false i got ~43 requests per second. > Shoud i turn off everything for best performance? > I tested old old mojavi framework :) he reached 30req/s in sample page > with DB and smarty on. > If i run this test on a sample php file with just one line of php > code, > i got 2350req/sec. > > How you achieved : > "Our largest request / second rate on an Agavi powered application is > approx. 2500 reqs/sec on a single server." > and > "Currently managing about 500 reqs/sec with an ease." > Info taken from: http://trac.agavi.org/wiki/ShowCase/MiDaSi > > I run test on notebook which has: Intel Core2 CPU T7200 2.00GHz, > with > 1 GB ram. > Thanks for any advice
First of all, it obviously is pretty difficult to reach 2500 requests per second with Agavi if you only get 2500 requests per second from a plain PHP file. Other than that, those 500req/s are likely on some huge quad CPU xeon servers, running linux and so on. You'll never get the same performance on a local machine, especially not on a laptop where the hard drive is another limiting factor. You really should consider installing APC as well, that improves performance drastically. But as I said, a dedicated server will always yield far better performance, especially if your local machine is running Windows. Also, are you really sure you have debug off? David P.S: excecution time filter only measures action execution time, not agavi startup or context initialization or the global dispatch code, but you can add the filter to global_filters.xml too to get a slightly more accurate result. To see the real exec time, measure in index.php, but if you want to output the time, set "send_content_length" to false for AgaviWebResponse, or you won't see it in the browser. _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
