11# RERUM Cache Metrics & Functionality Report
22
3- ** Generated** : Fri Oct 24 16:26:17 CDT 2025
3+ ** Generated** : Fri Oct 24 16:38:52 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** : 32 passed, 0 failed, 0 skipped (32 total)
11+ ** Overall Test Results** : 32 passed, 1 failed, 0 skipped (33 total)
1212
1313### Cache Performance Summary
1414
1515| Metric | Value |
1616| --------| -------|
1717| Cache Hits | 3 |
18- | Cache Misses | 1007 |
18+ | Cache Misses | 1010 |
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 ` | ⚠️ Partial Failures (2 /50) | Update existing objects |
36+ | ` /update ` | ⚠️ Partial Failures (1 /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 ` | 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 |
51+ | ` /query ` | 421 | N/A | N/A | N/A |
52+ | ` /search ` | 341 | N/A | N/A | N/A |
53+ | ` /searchPhrase ` | 62 | N/A | N/A | N/A |
54+ | ` /id ` | 502 | N/A | N/A | N/A |
55+ | ` /history ` | 867 | N/A | N/A | N/A |
56+ | ` /since ` | 858 | 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 ` | 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 |
72+ | ` /create ` | 251ms | 59ms | -192ms | ✅ None |
73+ | ` /update ` | N/A | N/A | N/A | N/A |
74+ | ` /patch ` | 668ms | 493ms | -175ms | ✅ None |
75+ | ` /set ` | 491ms | 478ms | -13ms | ✅ None |
76+ | ` /unset ` | 680ms | 498ms | -182ms | ✅ None |
77+ | ` /delete ` | 493ms | 473ms | -20ms | ✅ None |
78+ | ` /overwrite ` | 490ms | 680ms | +190ms | ⚠️ Moderate |
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: ~ -4ms
101- - Overhead percentage: ~ 0 %
102- - Net cost on 1000 writes: ~ -4000ms
100+ - Average overhead per write: ~ -65ms
101+ - Overhead percentage: ~ -12 %
102+ - Net cost on 1000 writes: ~ -65000ms
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 × 444ms = 355200ms
115- 200 writes × 57ms = 11400ms
116- Total: 366600ms
114+ 800 reads × 421ms = 336800ms
115+ 200 writes × 251ms = 50200ms
116+ Total: 387000ms
117117
118118With Cache:
119119 560 cached reads × 5ms = 2800ms
120- 240 uncached reads × 444ms = 106560ms
121- 200 writes × 56ms = 11200ms
122- Total: 120560ms
120+ 240 uncached reads × 421ms = 101040ms
121+ 200 writes × 59ms = 11800ms
122+ Total: 115640ms
123123
124- Net Improvement: 246040ms faster (~68 % improvement)
124+ Net Improvement: 271360ms faster (~71 % improvement)
125125```
126126
127127---
@@ -132,7 +132,7 @@ Net Improvement: 246040ms faster (~68% improvement)
132132
133133The cache layer provides:
1341341 . ** Significant read performance improvements** (0ms average speedup)
135- 2 . ** Minimal write overhead** (-4ms average, ~ 0 % of write time)
135+ 2 . ** Minimal write overhead** (-65ms average, ~ -12 % of write time)
1361363 . ** All endpoints functioning correctly** (32 passed tests)
137137
138138### 📊 Monitoring Recommendations
@@ -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: 198
167+ - Test Objects Created: 201
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 16:26:17 CDT 2025
179+ ** Report Generated** : Fri Oct 24 16:38:52 CDT 2025
180180** Format Version** : 1.0
181181** Test Suite** : cache-metrics.sh
0 commit comments