11# RERUM Cache Metrics & Functionality Report
22
3- ** Generated** : Thu Oct 23 20:13:25 UTC 2025
3+ ** Generated** : Fri Oct 24 16:55:19 UTC 2025
44** Test Duration** : Full integration and performance suite
55** Server** : http://localhost:3001
66
1414
1515| Metric | Value |
1616| --------| -------|
17- | Cache Hits | 0 |
18- | Cache Misses | 10111 |
19- | Hit Rate | 0.00 % |
20- | Cache Size | 3334 entries |
21- | Invalidations | 6671 |
17+ | Cache Hits | 1328 |
18+ | Cache Misses | 785 |
19+ | Hit Rate | 62.85 % |
20+ | Cache Size | 2 entries |
21+ | Invalidations | 678 |
2222
2323---
2424
4848
4949| Endpoint | Cold Cache (DB) | Warm Cache (Memory) | Speedup | Benefit |
5050| ----------| -----------------| ---------------------| ---------| ---------|
51- | ` /query ` | 339 | N/A | N/A | N/A |
52- | ` /search ` | 97 | N/A | N/A | N/A |
53- | ` /searchPhrase ` | 20 | N/A | N/A | N/A |
54- | ` /id ` | 416 | N/A | N/A | N/A |
55- | ` /history ` | 709 | N/A | N/A | N/A |
56- | ` /since ` | 716 | N/A | N/A | N/A |
51+ | ` /query ` | 342 | N/A | N/A | N/A |
52+ | ` /search ` | 109 | N/A | N/A | N/A |
53+ | ` /searchPhrase ` | 24 | N/A | N/A | N/A |
54+ | ` /id ` | 412 | N/A | N/A | N/A |
55+ | ` /history ` | 721 | N/A | N/A | N/A |
56+ | ` /since ` | 733 | N/A | N/A | N/A |
5757
5858** Interpretation** :
5959- ** Cold Cache** : First request hits database (cache miss)
6969
7070| Endpoint | Empty Cache | Full Cache (1000 entries) | Overhead | Impact |
7171| ----------| -------------| ---------------------------| ----------| --------|
72- | ` /create ` | 19ms | 30ms | +11ms | ⚠️ Moderate |
73- | ` /update ` | 432ms | 426ms | -6ms | ✅ None |
74- | ` /patch ` | 421ms | 430ms | +9ms | ✅ Low |
75- | ` /set ` | 430ms | 441ms | +11ms | ⚠️ Moderate |
76- | ` /unset ` | 422ms | 426ms | +4ms | ✅ Negligible |
77- | ` /delete ` | 443ms | 428ms | -15ms | ✅ None |
78- | ` /overwrite ` | 430ms | 427ms | -3ms | ✅ None |
72+ | ` /create ` | 22ms | 22ms | +0ms | ✅ Negligible |
73+ | ` /update ` | 452ms | 419ms | -33ms | ✅ None |
74+ | ` /patch ` | 425ms | 420ms | -5ms | ✅ None |
75+ | ` /set ` | 425ms | 439ms | +14ms | ⚠️ Moderate |
76+ | ` /unset ` | 422ms | 420ms | -2ms | ✅ None |
77+ | ` /delete ` | 450ms | 442ms | -8ms | ✅ None |
78+ | ` /overwrite ` | 423ms | 422ms | -1ms | ✅ None |
7979
8080** Interpretation** :
8181- ** Empty Cache** : Write with no cache to invalidate
9797- Net benefit on 1000 reads: ~ 0ms saved (assuming 70% hit rate)
9898
9999** Cache Costs (Writes)** :
100- - Average overhead per write: ~ 1ms
101- - Overhead percentage: ~ 0 %
102- - Net cost on 1000 writes: ~ 1000ms
100+ - Average overhead per write: ~ -5ms
101+ - Overhead percentage: ~ -1 %
102+ - Net cost on 1000 writes: ~ -5000ms
103103- Tested endpoints: create, update, patch, set, unset, delete, overwrite
104104
105105** Break-Even Analysis** :
@@ -111,17 +111,17 @@ For a workload with:
111111
112112```
113113Without Cache:
114- 800 reads × 339ms = 271200ms
115- 200 writes × 19ms = 3800ms
116- Total: 275000ms
114+ 800 reads × 342ms = 273600ms
115+ 200 writes × 22ms = 4400ms
116+ Total: 278000ms
117117
118118With Cache:
119119 560 cached reads × 5ms = 2800ms
120- 240 uncached reads × 339ms = 81360ms
121- 200 writes × 30ms = 6000ms
122- Total: 90160ms
120+ 240 uncached reads × 342ms = 82080ms
121+ 200 writes × 22ms = 4400ms
122+ Total: 89280ms
123123
124- Net Improvement: 184840ms faster (~68% improvement)
124+ Net Improvement: 188720ms faster (~68% improvement)
125125```
126126
127127---
@@ -132,7 +132,7 @@ Net Improvement: 184840ms faster (~68% improvement)
132132
133133The cache layer provides:
1341341 . ** Significant read performance improvements** (0ms average speedup)
135- 2 . ** Minimal write overhead** (1ms average, ~ 0 % of write time)
135+ 2 . ** Minimal write overhead** (-5ms average, ~ -1 % of write time)
1361363 . ** All endpoints functioning correctly** (26 passed tests)
137137
138138### 📊 Monitoring Recommendations
@@ -146,7 +146,7 @@ In production, monitor:
146146### ⚙️ Configuration Tuning
147147
148148Current cache configuration:
149- - Max entries: 5000
149+ - Max entries: 1000
150150- Max size: 1000000000 bytes
151151- TTL: 300 seconds
152152
@@ -176,6 +176,6 @@ Consider tuning based on:
176176
177177---
178178
179- ** Report Generated** : Thu Oct 23 20:13:25 UTC 2025
179+ ** Report Generated** : Fri Oct 24 16:55:19 UTC 2025
180180** Format Version** : 1.0
181181** Test Suite** : cache-metrics.sh
0 commit comments