Skip to content

Commit 5674201

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
Add more competitive analysis
1 parent 6232c4f commit 5674201

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@ Benchmarks on MacBook Pro M4 Max comparing memory-only Get operations:
6666
- Hit rates - S3-FIFO protects hot data from scans in specific scenarios
6767
- Zero allocations - efficient for high-frequency operations
6868

69+
### Competitive Analysis
70+
71+
Independent benchmark using [scalalang2/go-cache-benchmark](https://github.com/scalalang2/go-cache-benchmark) (500K items, Zipfian distribution):
72+
73+
**Hit Rate Leadership:**
74+
- **1% cache size**: bdcache **64.45%** vs TinyLFU 63.94%, Otter 63.60%, S3-FIFO 63.59%, SIEVE 63.33%
75+
- **10% cache size**: bdcache **80.39%** vs TinyLFU 80.43%, Otter 79.86%, S3-FIFO 79.84%
76+
- **0.1% cache size**: bdcache **48.12%** vs SIEVE 47.42%, TinyLFU 47.37%, S3-FIFO 47.16%
77+
78+
Consistently ranks top 1-2 for hit rate across all cache sizes while maintaining competitive throughput (5-12M QPS). The S3-FIFO implementation prioritizes cache efficiency over raw speed, making bdcache ideal when hit rate matters.
79+
6980
### Detailed Benchmarks
7081

7182
Memory-only operations:

0 commit comments

Comments
 (0)