Mahesh Reddy has uploaded this change for review. ( http://gerrit.cloudera.org:8080/21601
Change subject: KUDU-613: SLRU Cache Benchmark ...................................................................... KUDU-613: SLRU Cache Benchmark This patch introduces a new benchmark that validates the SLRU cache. The pattern this benchmark follows is frequent lookups for a small set of keys followed by lookups for rarely accessed keys with large values that would normally evict the frequently accessed keys from the LRU cache. As the results below show, SLRU cache performs better with this workload pattern. Ran benchmarks for RELEASE build locally on macOS. 6 cores and 2.6GHz. Results: Test case | Algorithm | Lookups/sec | Hit rate PRE_DETERMINED ratio=1.00x | LRU | 16.62M | 92.3% PRE_DETERMINED ratio=1.00x | SLRU | 19.60M | 98.4% PRE_DETERMINED ratio=3.00x | LRU | 18.16M | 93.4% PRE_DETERMINED ratio=3.00x | SLRU | 20.76M | 99.2% Change-Id: I1c128a9f047497373ce3e740056eaa89a352261b --- M src/kudu/util/cache-bench.cc 1 file changed, 35 insertions(+), 12 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/01/21601/1 -- To view, visit http://gerrit.cloudera.org:8080/21601 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I1c128a9f047497373ce3e740056eaa89a352261b Gerrit-Change-Number: 21601 Gerrit-PatchSet: 1 Gerrit-Owner: Mahesh Reddy <[email protected]>
