Skip to content

Commit 3893c2b

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
Improve README
1 parent 7f5e7f5 commit 3893c2b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ cache, _ := bdcache.New[string, User](ctx,
6464

6565
Benchmarks on MacBook Pro M4 Max comparing memory-only Get operations:
6666

67-
| Library | Algorithm | ns/op | Allocations | Persistence |
68-
|---------|-----------|-------|-------------|-------------|
69-
| **bdcache** | S3-FIFO | **8.61** | **0 allocs** | ✅ Auto (Local files + GCP Datastore) |
70-
| golang-lru | LRU | 13.02 | 0 allocs | ❌ None |
71-
| otter | S3-FIFO | 14.58 | 0 allocs | ⚠️ Manual (Save/Load entire cache) |
72-
| ristretto | TinyLFU | 30.53 | 0 allocs | ❌ None |
67+
| Library | Algorithm | ns/op | Persistence |
68+
|---------|-----------|-------|-------------|
69+
| **bdcache** | S3-FIFO | **8.61** | Yes |
70+
| golang-lru | LRU | 13.02 | ❌ None |
71+
| otter | S3-FIFO | 14.58 | ⚠️ Manual (Save/Load entire cache) |
72+
| ristretto | TinyLFU | 30.53 | ❌ None |
7373

7474
> ⚠️ **Benchmark Disclaimer**: These benchmarks are highly cherrypicked to show S3-FIFO's advantages. Different cache implementations excel at different workloads - LRU may outperform S3-FIFO in some scenarios, while TinyLFU shines in others. Performance varies based on access patterns, working set size, and hardware.
7575
>

0 commit comments

Comments
 (0)