]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Add support for FastLRUCache in cache_bench (#10095)
authorGuido Tagliavini Ponce <tagliavini@fb.com>
Fri, 3 Jun 2022 20:40:09 +0000 (13:40 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 3 Jun 2022 20:40:09 +0000 (13:40 -0700)
commiteb99e080760bf86a9fd2b725df2fdeb1dd4df884
tree390d2fbd8278c8b20418055fd014a8e9edcd1de7
parent21906d66f619a498936545509c40af6abd084dc2
Add support for FastLRUCache in cache_bench (#10095)

Summary:
cache_bench can now run with FastLRUCache.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10095

Test Plan:
- Temporarily add an ``assert(false)`` in the execution path that sets up the FastLRUCache. Run ``make -j24 cache_bench``. Then test the appropriate code is used by running ``./cache_bench -cache_type=fast_lru_cache`` and checking that the assert is called. Repeat for LRUCache.
- Verify that FastLRUCache (currently a clone of LRUCache) has similar latency distribution than LRUCache, by comparing the outputs of ``./cache_bench -cache_type=fast_lru_cache`` and ``./cache_bench -cache_type=lru_cache``.

Reviewed By: pdillinger

Differential Revision: D36875834

Pulled By: guidotag

fbshipit-source-id: eb2ad0bb32c2717a258a6ac66ed736e06f826cd8
cache/cache_bench_tool.cc