Jeepers. I just did the coding to use action_cache instead of the the ResponseCache mechanism, feeling all proud I decided to run some benchmarks.
Raw apache can serve up a 60Kb page on my server at 677 requests/sec. Action cache turned out to be two orders of magnitude slower than that - 6.7req/sec - and that's using mod_xsendfile. Without, it's half that again - 3.2req/sec. Radiant's ResponseCache can spit out a 60Kb page on my server at 65 requests/sec. That's an order of magnitude slower than raw apache (677 req/sec), but still quite a resonable rate. I don't really see anything in action cache to account for such a performance hit - I'm guessing it's in the underlying rails fragment cache and the many levels of redirection there. Seems playing with the cache was a waste of time. Probably should have done my last benchmark first - the simplest rails app I could make serving up just the string 'hello' can serve only 73 requests/sec - If I had've just compared that to the ResponseCache speed I wouldn't have even bothered. I still want to get handling of if-modified-since and 304 responses into the ResponseCache, as well as some finer control over the cache timeout for a page on a page-by-page basis, but looks like action_cache is not the way to go there. Dan. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Daniel Sheppard > Sent: Wednesday, 3 January 2007 2:52 PM > To: [email protected] > Subject: Re: [Radiant] Ideas for reimplementation of radiant caching > > >From looking at response_cache, there are only two features that it > implements that the default rails action caching didn't (easily): > > - Expire Everything > - Expire After time > > Am I missing something else? If I'm not, then I think I might > have found > something that will give a big jump on what I want to get done: > > http://www.agilewebdevelopment.com/plugins/action_cache _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
