136 points · by enobrev · 14y ago · 15 comments
A while ago I did some benchmarks with hooking up APC and Squid proxy to the site I was working on at the time. The results were pretty amazing. I saw an increase in capability/performance of 400-700%. I'd probably choose Varnish over Squid if I had to do it again, however. The Squid configuration file is a bit of a nightmare.
http://randomdrake.com/2009/07/14/benchmark-results-show-400...
Fact: My netbook is memory constrained and the network is often faster than my local disk.
Hunch: Caching content locally does nothing but thrash my disk, trash my FS cache and slow my entire computer down.
We'll see how it pans out. :-)
Being memory constrained means I do not have a large filesystem cache and cannot afford to have it smashed by lots of cache reads/writes.
It also means the odds that a cached (on disk) resource is actually in RAM is low, so a cache hit involves multiple disk seeks which very quickly adds up to more latency than fetching over the network - especially when you consider that I have one disk which cannot run multiple seeks in parallel, whereas the network round trips can overlap.
Performance on modern computers very often boils down to avoiding disk seeks.
I'm pretty sure jquery.xx.min.js will be downloaded over and over again for every page if you don't cache it.
I'm wondering what kind of network you have...
I don't like this. Dynamic pages don't usually send any of those headers, so the page will appear identical in his analysis, despite not actually being identical.