jaemk
cached
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
feat: expiring ttl cache
#263
Comparing
260522.expires-ttl-once
(
e28bbcd
) with
master
(
f4c7bae
)
CodSpeed Performance Gauge
+1%
Improvement
1
Regression
1
Untouched
12
New
2
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Regression
Improvement
New
Untouched
16 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
UnboundCache hit
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
-11%
247.2 ns
276.4 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
UnboundCache insert
benches/cache_benches.rs::benches::bench_cache_misses_and_inserts::Cache Misses & Inserts
CodSpeed Performance Gauge
+14%
468.6 ns
410.3 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ExpiringCache hit (O(1))
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
N/A
N/A
402.8 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ExpiringCache insert
benches/cache_benches.rs::benches::bench_cache_misses_and_inserts::Cache Misses & Inserts
CodSpeed Performance Gauge
N/A
N/A
408.3 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
TtlSortedCache hit
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
+9%
1,011.7 ns
926.4 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
LruCache insert (no eviction)
benches/cache_benches.rs::benches::bench_cache_misses_and_inserts::Cache Misses & Inserts
CodSpeed Performance Gauge
+7%
853.3 ns
795 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
LruCache hit
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
0%
555.3 ns
555.3 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
LruTtlCache hit (O(1))
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
0%
1.1 µs
1.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
TtlCache hit (O(1))
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
0%
966.1 ns
966.1 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
LruCache eviction overhead
benches/cache_benches.rs::benches::bench_eviction_overhead::Eviction & Capacity Limits
CodSpeed Performance Gauge
0%
1.1 µs
1.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
LruTtlCache eviction overhead
benches/cache_benches.rs::benches::bench_eviction_overhead::Eviction & Capacity Limits
CodSpeed Performance Gauge
0%
1.7 µs
1.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
RwLock UnboundCache unsync read
benches/cache_benches.rs::benches::bench_lock_synchronization::Lock Contention & Synchronization
CodSpeed Performance Gauge
0%
372.8 ns
372.8 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
RwLock UnboundCache write lock read
benches/cache_benches.rs::benches::bench_lock_synchronization::Lock Contention & Synchronization
CodSpeed Performance Gauge
0%
370.3 ns
370.3 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
LruTtlCache insert (no eviction)
benches/cache_benches.rs::benches::bench_cache_misses_and_inserts::Cache Misses & Inserts
CodSpeed Performance Gauge
-2%
1.2 µs
1.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
TtlCache insert (no eviction)
benches/cache_benches.rs::benches::bench_cache_misses_and_inserts::Cache Misses & Inserts
CodSpeed Performance Gauge
-3%
839.7 ns
868.9 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ExpiringLruCache hit (O(1))
benches/cache_benches.rs::benches::bench_cache_hits::Cache Hits (O(1) Reads)
CodSpeed Performance Gauge
-5%
555.3 ns
584.4 ns
Commits
Click on a commit to change the comparison range
Base
master
f4c7bae
+1.08%
feat: add ExpiringCache, ExpiringLruCache, and expires = true macro attribute
e28bbcd
1 day ago
by jaemk
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs