Avatar for the jaemk user
jaemk
cached
BlogDocsChangelog

feat: sharded in-memory stores + #[concurrent_cached] default

#264
Comparing
20250525.sharded-cache
(
2473a37
) with
master
(
70cb5ac
)
CodSpeed Performance Gauge
N/A
New
30
Skipped
16

Benchmarks

46 total
LruCache eviction overhead
benches/cache_benches.rs::benches::bench_eviction_overhead::Eviction & Capacity Limits
CodSpeed Performance Gauge
N/A
N/A24 ns
LruCache hit
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
N/A
N/A8 ns
ExpiringCache insert
benches/cache_benches.rs::benches::bench_cache_misses_and_inserts::Cache Misses & Inserts
CodSpeed Performance Gauge
N/A
N/A21 ns
ShardedLruCache
benches/cache_benches.rs::benches::bench_sharded_lru_concurrent::Concurrent Writes: ShardedLruCache vs Mutex<LruCache>
CodSpeed Performance Gauge
N/A
N/A76 ns
TtlCache insert (no eviction)
benches/cache_benches.rs::benches::bench_cache_misses_and_inserts::Cache Misses & Inserts
CodSpeed Performance Gauge
N/A
N/A49 ns
TtlSortedCache hit
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
N/A
N/A40 ns
UnboundCache insert
benches/cache_benches.rs::benches::bench_cache_misses_and_inserts::Cache Misses & Inserts
CodSpeed Performance Gauge
N/A
N/A21 ns
ShardedLruCache
benches/cache_benches.rs::benches::bench_sharded_lru_concurrent::Concurrent Reads: ShardedLruCache vs Mutex<LruCache>
CodSpeed Performance Gauge
N/A
N/A132 ns
ShardedLruTtlCache
benches/cache_benches.rs::benches::bench_sharded_lru_ttl_concurrent::Concurrent Writes: ShardedLruTtlCache vs Mutex<LruTtlCache>
CodSpeed Performance Gauge
N/A
N/A117 ns
RwLock UnboundCache write lock read
benches/cache_benches.rs::benches::bench_lock_synchronization::Lock Contention & Synchronization
CodSpeed Performance Gauge
N/A
N/A8 ns
LruTtlCache eviction overhead
benches/cache_benches.rs::benches::bench_eviction_overhead::Eviction & Capacity Limits
CodSpeed Performance Gauge
N/A
N/A59 ns
ShardedCache
benches/cache_benches.rs::benches::bench_sharded_unbound_concurrent::Concurrent Reads: ShardedCache vs single-lock
CodSpeed Performance Gauge
N/A
N/A3 ns
ShardedLruTtlCache
benches/cache_benches.rs::benches::bench_sharded_lru_ttl_concurrent::Concurrent Reads: ShardedLruTtlCache vs Mutex<LruTtlCache>
CodSpeed Performance Gauge
N/A
N/A207 ns
ExpiringCache hit (O(1))
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
N/A
N/A5 ns
RwLock UnboundCache unsync read
benches/cache_benches.rs::benches::bench_lock_synchronization::Lock Contention & Synchronization
CodSpeed Performance Gauge
N/A
N/A8 ns
LruCache insert (no eviction)
benches/cache_benches.rs::benches::bench_cache_misses_and_inserts::Cache Misses & Inserts
CodSpeed Performance Gauge
N/A
N/A17 ns
Mutex<LruTtlCache>
benches/cache_benches.rs::benches::bench_sharded_lru_ttl_concurrent::Concurrent Writes: ShardedLruTtlCache vs Mutex<LruTtlCache>
CodSpeed Performance Gauge
N/A
N/A498 ns
LruTtlCache hit (O(1))
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
N/A
N/A42 ns
LruTtlCache insert (no eviction)
benches/cache_benches.rs::benches::bench_cache_misses_and_inserts::Cache Misses & Inserts
CodSpeed Performance Gauge
N/A
N/A48 ns
Mutex<LruCache>
benches/cache_benches.rs::benches::bench_sharded_lru_concurrent::Concurrent Writes: ShardedLruCache vs Mutex<LruCache>
CodSpeed Performance Gauge
N/A
N/A116 ns
UnboundCache hit
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
N/A
N/A5 ns
Mutex<HashMap>
benches/cache_benches.rs::benches::bench_sharded_unbound_concurrent::Concurrent Reads: ShardedCache vs single-lock
CodSpeed Performance Gauge
N/A
N/A171 ns
Mutex<HashMap>
benches/cache_benches.rs::benches::bench_sharded_unbound_concurrent::Concurrent Writes: ShardedCache vs single-lock
CodSpeed Performance Gauge
N/A
N/A216 ns
RwLock<UnboundCache> (CachedRead)
benches/cache_benches.rs::benches::bench_sharded_unbound_concurrent::Concurrent Reads: ShardedCache vs single-lock
CodSpeed Performance Gauge
N/A
N/A16 ns
Mutex<LruTtlCache>
benches/cache_benches.rs::benches::bench_sharded_lru_ttl_concurrent::Concurrent Reads: ShardedLruTtlCache vs Mutex<LruTtlCache>
CodSpeed Performance Gauge
N/A
N/A365 ns

Commits

Click on a commit to change the comparison range
Base
master
70cb5ac
-42.44%
feat: sharded in-memory stores + #[concurrent_cached] default
18e4cac
9 days ago
by jaemk
+11.62%
feat: finish sharded cache PR fixes
345fdc7
6 days ago
by jaemk
0%
fix: restore intra-doc links for RedisCache and DiskCache in CacheTtl trait
668439c
6 days ago
by jaemk
0%
fix: ShardedExpiringLruCache::cache_remove fires on_evict and updates evictions
04e321f
6 days ago
by jaemk
0%
fix: cache_remove returns Some(v) for expired entries across all sharded expiry stores
a083aaf
6 days ago
by jaemk
-17.58%
feat: allow plain return types for #[concurrent_cached] on sharded in-memory stores
9778167
6 days ago
by jaemk
+7.79%
fix: address concurrent cache review feedback
07e8f90
6 days ago
by jaemk
0%
fix: polish concurrent cache review feedback
9d2dcf6
6 days ago
by jaemk
0%
fix: on_evict stored-key consistency and ShardedTtlCache cache_remove
3056931
6 days ago
by jaemk
0%
docs: clarify Result-alias detection requires type arguments
631645a
6 days ago
by jaemk
-6.9%
docs: sync cache_remove unification across changelog, readme, and trait docs
b22b929
5 days ago
by jaemk
+6.9%
fix: address PR review feedback — clone removal, doc clarifications, test improvements
171f2d6
5 days ago
by jaemk
0%
fix: LruCache::retain fires on_evict; ShardedLruTtlCache::evict no longer double-counts
1a74ac8
5 days ago
by jaemk
+0.56%
fix: address PR review feedback
b6cd624
5 days ago
by jaemk
0%
ci: restore CodSpeed simulation mode
4e9c7bc
5 days ago
by jaemk
0%
fix: with_cached_flag error message, ShardedTtlCache build panic, evictions guard
42f178a
5 days ago
by jaemk
0%
feat: add option=true support to #[concurrent_cached] and unify macro arg naming
0f25248
5 days ago
by jaemk
-6.68%
fix: address PR review feedback
80f3c31
4 days ago
by jaemk
+4.07%
docs: rename migration files so no-suffix = agent, -human suffix = human
ce4274c
3 days ago
by jaemk
© 2026 CodSpeed Technology
Home Terms Privacy Docs