You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 🔥 Throughput: 187% faster than next best (freecache)
125
+
- 🔥 Throughput: 180% faster than next best (freecache)
118
126
119
127
>>> TestMetaTrace: Meta Trace Hit Rate (10M ops) (go test -run=TestMetaTrace -v)
120
128
121
129
### Meta Trace Hit Rate (10M ops from Meta KVCache)
122
130
123
131
| Cache | 50K cache | 100K cache |
124
132
|---------------|-----------|------------|
125
-
| sfcache | 68.19% | 76.03% |
126
-
| otter | 41.31% | 55.41% |
127
-
| ristretto | 40.33% | 48.91% |
133
+
| sfcache | 68.53% | 76.34% |
134
+
| otter | 41.37% | 56.14% |
135
+
| ristretto | 40.35% | 48.95% |
128
136
| tinylfu | 53.70% | 54.79% |
129
137
| freecache | 56.86% | 65.52% |
130
138
| lru | 65.21% | 74.22% |
131
139
132
-
- 🔥 Meta trace: 2.4% better than next best (lru)
140
+
- 🔥 Meta trace: 2.9% better than next best (lru)
133
141
134
142
>>> TestHitRate: Zipf Hit Rate (go test -run=TestHitRate -v)
135
143
136
144
### Hit Rate (Zipf alpha=0.99, 1M ops, 1M keyspace)
137
145
138
146
| Cache | Size=1% | Size=2.5% | Size=5% |
139
147
|---------------|---------|-----------|---------|
140
-
| sfcache | 64.19% | 69.23% | 72.50% |
141
-
| otter | 61.64% | 67.94% | 71.38% |
142
-
| ristretto | 34.88% | 41.25% | 46.62% |
148
+
| sfcache | 64.41% | 69.24% | 72.57% |
149
+
| otter | 62.28% | 67.81% | 71.42% |
150
+
| ristretto | 34.87% | 41.25% | 46.49% |
143
151
| tinylfu | 63.83% | 68.25% | 71.56% |
144
152
| freecache | 56.65% | 57.75% | 63.39% |
145
153
| lru | 57.33% | 64.55% | 69.92% |
146
154
147
-
- 🔥 Hit rate: 1.1% better than next best (tinylfu)
155
+
- 🔥 Hit rate: 1.3% better than next best (tinylfu)
148
156
```
149
157
150
158
Cache performance is a game of balancing trade-offs. There will be workloads where other cache implementations are better, but nobody blends speed and persistence like we do.
0 commit comments