libCacheSim
go-cache-benchmark
libCacheSim | go-cache-benchmark | |
---|---|---|
2 | 2 | |
123 | 2 | |
- | - | |
8.3 | 7.0 | |
29 days ago | 2 months ago | |
C | Go | |
GNU General Public License v3.0 only | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
libCacheSim
-
Sieve is simpler than LRU
https://github.com/1a1a11a/libCacheSim/blob/develop/libCache...
-
Otter, Fastest Go in-memory cache based on S3-FIFO algorithm
/u/someplaceguy,
Those LIRS traces, along with many others, available at this page [1]. I did a cursory review using their traces using Caffeine's and the author's simulators to avoid bias or a mistaken implementation. In their target workloads Caffeine was on par or better [2]. I have not seen anything novel in this or their previous works and find their claims to be easily disproven, so I have not implement this policy in Caffeine simulator yet.
[1]: https://github.com/ben-manes/caffeine/wiki/Simulator
[2]: https://github.com/1a1a11a/libCacheSim/discussions/20
go-cache-benchmark
-
Otter, Fastest Go in-memory cache based on S3-FIFO algorithm
- I added otter to my cache benchmark. It shows less efficiency than mine. I'm not sure why this happens.
See results here: https://github.com/scalalang2/go-cache-benchmark
[3]
-
golang-fifo | Modern cache eviction algorithm implementations.
I've conducted my own research to verify that its statements are really true. The S3-FIFO algorithm shows the best cache efficiency (= low miss ratio) relative to other LRU-based algorithm when cache size is quite smaller than total size of item set.
What are some alternatives?
Caffeine - A high performance caching library for Java
maphash
xsync - Concurrent data structures for Go
ristretto - A high performance memory-bound Go cache
sosp23-s3fifo - The repo for SOSP23 paper: FIFO queues are all you need for cache evictions
golang-fifo - Modern efficient cache design with simple FIFO queue only in Golang
otter - A high performance lockless cache for Go.
theine-go - high performance in-memory cache