3 ms·
Caching is derived from business requirements, of course. You'd expect lower time of response on cache hits than on cache misses. There are at least couple ways
by ivan_gammel 8y ago
Caching is derived from business requirements, of course. You'd expect lower time of response on cache hits than on cache misses. There are at least couple ways to test it: counting FS access under assumption it is the bottleneck or real performance testing. Both tests would vergiy some version of business requirements.
- lgessler 8y agoYes, derived from, but not the same as. I think the best way to think of it is that caching addresses a business requirement, but it is not a business requirement in itself. The business requirement is e.g., n requests per second, and it is up to the programmer to solve it whatever way they want. The requirement is adequately captured in tests that simply pound the external API to make sure it can keep up, which assumes nothing about how it got its performance.