11# RERUM Cache Metrics & Functionality Report
22
3- ** Generated** : Fri Oct 24 20:39:26 UTC 2025
3+ ** Generated** : Fri Oct 24 16:26:17 CDT 2025
44** Test Duration** : Full integration and performance suite
55** Server** : http://localhost:3001
66
77---
88
99## Executive Summary
1010
11- ** Overall Test Results** : 37 passed, 0 failed, 0 skipped (37 total)
11+ ** Overall Test Results** : 32 passed, 0 failed, 0 skipped (32 total)
1212
1313### Cache Performance Summary
1414
1515| Metric | Value |
1616| --------| -------|
1717| Cache Hits | 3 |
18- | Cache Misses | 1010 |
18+ | Cache Misses | 1007 |
1919| Hit Rate | 0.30% |
2020| Cache Size | 999 entries |
2121| Invalidations | 7 |
3333| ` /history ` | ✅ Functional | Get object version history |
3434| ` /since ` | ✅ Functional | Get objects modified since timestamp |
3535| ` /create ` | ✅ Functional | Create new objects |
36- | ` /update ` | ✅ Functional | Update existing objects |
36+ | ` /update ` | ⚠️ Partial Failures (2/50) | Update existing objects |
3737| ` /patch ` | ✅ Functional | Patch existing object properties |
3838| ` /set ` | ✅ Functional | Add new properties to objects |
3939| ` /unset ` | ✅ Functional | Remove properties from objects |
4848
4949| Endpoint | Cold Cache (DB) | Warm Cache (Memory) | Speedup | Benefit |
5050| ----------| -----------------| ---------------------| ---------| ---------|
51- | ` /query ` | 526 | N/A | N/A | N/A |
52- | ` /search ` | 110 | N/A | N/A | N/A |
53- | ` /searchPhrase ` | 34 | N/A | N/A | N/A |
54- | ` /id ` | 416 | N/A | N/A | N/A |
55- | ` /history ` | 734 | N/A | N/A | N/A |
56- | ` /since ` | 724 | N/A | N/A | N/A |
51+ | ` /query ` | 444 | N/A | N/A | N/A |
52+ | ` /search ` | 516 | N/A | N/A | N/A |
53+ | ` /searchPhrase ` | 64 | N/A | N/A | N/A |
54+ | ` /id ` | 495 | N/A | N/A | N/A |
55+ | ` /history ` | 862 | N/A | N/A | N/A |
56+ | ` /since ` | 866 | 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 ` | 22ms | 24ms | +2ms | ✅ Negligible |
73- | ` /update ` | 424ms | 428ms | +4ms | ✅ Negligible |
74- | ` /patch ` | 426ms | 425ms | -1ms | ✅ None |
75- | ` /set ` | 447ms | 442ms | -5ms | ✅ None |
76- | ` /unset ` | 427ms | 426ms | -1ms | ✅ None |
77- | ` /delete ` | 445ms | 428ms | -17ms | ✅ None |
78- | ` /overwrite ` | 438ms | 425ms | -13ms | ✅ None |
72+ | ` /create ` | 57ms | 56ms | -1ms | ✅ None |
73+ | ` /update ` | 470ms | N/A | N/A | ✅ Write-only |
74+ | ` /patch ` | 1078ms | 475ms | -603ms | ✅ None |
75+ | ` /set ` | 476ms | 475ms | -1ms | ✅ None |
76+ | ` /unset ` | 485ms | 899ms | +414ms | ⚠️ Moderate |
77+ | ` /delete ` | 517ms | 680ms | +163ms | ⚠️ Moderate |
78+ | ` /overwrite ` | 475ms | 477ms | +2ms | ✅ Negligible |
7979
8080** Interpretation** :
8181- ** Empty Cache** : Write with no cache to invalidate
9898
9999** Cache Costs (Writes)** :
100100- Average overhead per write: ~ -4ms
101- - Overhead percentage: ~ -1 %
101+ - Overhead percentage: ~ 0 %
102102- Net cost on 1000 writes: ~ -4000ms
103103- Tested endpoints: create, update, patch, set, unset, delete, overwrite
104104
@@ -111,17 +111,17 @@ For a workload with:
111111
112112```
113113Without Cache:
114- 800 reads × 526ms = 420800ms
115- 200 writes × 22ms = 4400ms
116- Total: 425200ms
114+ 800 reads × 444ms = 355200ms
115+ 200 writes × 57ms = 11400ms
116+ Total: 366600ms
117117
118118With Cache:
119119 560 cached reads × 5ms = 2800ms
120- 240 uncached reads × 526ms = 126240ms
121- 200 writes × 24ms = 4800ms
122- Total: 133840ms
120+ 240 uncached reads × 444ms = 106560ms
121+ 200 writes × 56ms = 11200ms
122+ Total: 120560ms
123123
124- Net Improvement: 291360ms faster (~69 % improvement)
124+ Net Improvement: 246040ms faster (~68 % improvement)
125125```
126126
127127---
@@ -132,8 +132,8 @@ Net Improvement: 291360ms faster (~69% improvement)
132132
133133The cache layer provides:
1341341 . ** Significant read performance improvements** (0ms average speedup)
135- 2 . ** Minimal write overhead** (-4ms average, ~ -1 % of write time)
136- 3 . ** All endpoints functioning correctly** (37 passed tests)
135+ 2 . ** Minimal write overhead** (-4ms average, ~ 0 % of write time)
136+ 3 . ** All endpoints functioning correctly** (32 passed tests)
137137
138138### 📊 Monitoring Recommendations
139139
@@ -164,7 +164,7 @@ Consider tuning based on:
164164- Server: http://localhost:3001
165165- Test Framework: Bash + curl
166166- Metrics Collection: Millisecond-precision timing
167- - Test Objects Created: 202
167+ - Test Objects Created: 198
168168- All test objects cleaned up: ✅
169169
170170** Test Coverage** :
@@ -176,6 +176,6 @@ Consider tuning based on:
176176
177177---
178178
179- ** Report Generated** : Fri Oct 24 20:39:26 UTC 2025
179+ ** Report Generated** : Fri Oct 24 16:26:17 CDT 2025
180180** Format Version** : 1.0
181181** Test Suite** : cache-metrics.sh
0 commit comments