Dev. v2025.12.20.A (Cache)
·
49 commits
to master
since this release
Update Log
- Optimized Base64 processing logic: Achieved a noticeable improvement in processing performance.
- Added Cache Support for User Profile API: Now supports Memory Cache (default) or Redis. When caching is enabled, request processing efficiency reaches incredible levels in certain scenarios. Please refer to the stress test results below for details.
Simple Stress Test (For Reference Only)
- Test Configuration: Local Debug environment, SQLite database, Log level set to Warning to minimize I/O impact.
- Test Duration: Each test lasted approximately 30 seconds.
- Concurrency:
- With Cache: 8 concurrent threads.
- Without Cache: 4 concurrent threads.
- Disclaimer: Non-standardized benchmark; results are indicative only.
Due to the performance limitations of the testing tool itself, these results may not fully represent real-world high-load scenarios.
⚡ Performance With Cache Enabled
(Using the default configuration: Memory Cache)
| Test Scenario | Duration | Average RPS (Req/s) | Total Requests | Avg Response Size | Total Data Throughput |
|---|---|---|---|---|---|
| Plain Text / No Images (User Profile with almost no images) |
30.12s | 95,334.10 ⚡⚡ | 2,871,595 | 1.03 KB | 2,889.19 MB |
| Few Images (User Profile with a moderate number of images) |
30.13s | 744.12 ⚡ | 22,424 | 3.42 MB | 76,615.90 MB |
| Many Images (User Profile with a large number of images) |
30.13s | 85.14 ⚡ | 2,565 | 24.83 MB | 63,688.72 MB |
🐢 Performance Without Cache
| Test Scenario | Duration | Average RPS (Req/s) | Total Requests | Avg Response Size | Total Data Throughput |
|---|---|---|---|---|---|
| Plain Text / No Images (User Profile with almost no images) |
30.12s | 3,783.58 | 113,971 | 1.03 KB | 114.67 MB |
| Few Images (User Profile with a moderate number of images) |
30.13s | 222.56 | 6,706 | 3.42 MB | 22,912.34 MB |
| Many Images (User Profile with a large number of images) |
30.13s | 39.86 | 1,201 | 24.83 MB | 29,820.72 MB |