matrix-org
matrix-rust-sdk
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
refactor(event cache): allow deref state lock read/write guards to the state
#6314
Merged
Comparing
bnjbvr/refactor-event-cache-lock-guards
(
4fd97b4
) with
main
(
81bed18
)
CodSpeed Performance Gauge
+99%
Improvement
1
Untouched
49
Different runtime environments detected
Some benchmarks with significant performance changes were compared across different runtime environments, which may affect the accuracy of the results.
Learn more about regression causes
.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
50 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Restore session [memory store]
benchmarks/benches/store_bench.rs::benches::restore_session::Client reload
CodSpeed Performance Gauge
+99%
222.4 ms
112.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Create[1000 rooms × 1000 events]
benchmarks/benches/room_list.rs::room_list::create::RoomList
CodSpeed Performance Gauge
+3%
6.3 ms
6.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk metadata loader[memory store][10]
benchmarks/benches/linked_chunk.rs::event_cache::reading::Linked chunk reading
CodSpeed Performance Gauge
+1%
6.1 µs
6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk lazy loader[memory store][10]
benchmarks/benches/linked_chunk.rs::event_cache::reading::Linked chunk reading
CodSpeed Performance Gauge
+1%
35.2 µs
35 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache find_event_relations[SQLite][100 events, edits filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
+1%
7.5 ms
7.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk writing [sqlite store][100]
benchmarks/benches/linked_chunk.rs::event_cache::writing::Linked chunk writing
CodSpeed Performance Gauge
0%
3.3 ms
3.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk lazy loader[sqlite store][1000]
benchmarks/benches/linked_chunk.rs::event_cache::reading::Linked chunk reading
CodSpeed Performance Gauge
0%
15.3 ms
15.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache room updates[SQLite][room count: 100]
benchmarks/benches/event_cache.rs::event_cache::handle_room_updates::Event cache room updates
CodSpeed Performance Gauge
0%
7 s
6.9 s
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache find_event_relations[SQLite][100 events, #no filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
0%
7 ms
7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache room updates[memory][room count: 10]
benchmarks/benches/event_cache.rs::event_cache::handle_room_updates::Event cache room updates
CodSpeed Performance Gauge
0%
236.4 ms
235.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk metadata loader[sqlite store][1000]
benchmarks/benches/linked_chunk.rs::event_cache::reading::Linked chunk reading
CodSpeed Performance Gauge
0%
625.7 µs
624.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Devices collecting [memory][2003 devices]
benchmarks/benches/crypto_bench.rs::benches::devices_missing_sessions_collecting::Devices missing sessions collecting
CodSpeed Performance Gauge
0%
10.7 ms
10.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache find_event_relations[SQLite][1000 events, edits filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
0%
73.9 ms
73.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Room key sharing [memory][163 devices]
benchmarks/benches/crypto_bench.rs::benches::room_key_sharing::Room key sharing
CodSpeed Performance Gauge
0%
46.6 ms
46.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Room key sharing [SQLite][163 devices]
benchmarks/benches/crypto_bench.rs::benches::room_key_sharing::Room key sharing
CodSpeed Performance Gauge
0%
56.7 ms
56.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk lazy loader[sqlite store][100]
benchmarks/benches/linked_chunk.rs::event_cache::reading::Linked chunk reading
CodSpeed Performance Gauge
0%
1.7 ms
1.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Device keys query [memory][153 device and cross signing keys]
benchmarks/benches/crypto_bench.rs::benches::keys_query::Keys querying
CodSpeed Performance Gauge
0%
27.3 ms
27.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk writing [memory store][100]
benchmarks/benches/linked_chunk.rs::event_cache::writing::Linked chunk writing
CodSpeed Performance Gauge
0%
381.7 µs
381.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Restore session [SQLite][encrypted]
benchmarks/benches/store_bench.rs::benches::restore_session::Client reload
CodSpeed Performance Gauge
0%
1.2 s
1.2 s
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk writing [none][1000]
benchmarks/benches/linked_chunk.rs::event_cache::writing::Linked chunk writing
CodSpeed Performance Gauge
0%
867.4 µs
867.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache find_event_relations[memory][10 events, edits filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
0%
3.9 ms
3.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache find_event_relations[memory][1000 events, #no filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
0%
2.5 s
2.5 s
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache find_event_relations[memory][1000 events, edits filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
0%
2.5 s
2.5 s
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache room updates[memory][room count: 100]
benchmarks/benches/event_cache.rs::event_cache::handle_room_updates::Event cache room updates
CodSpeed Performance Gauge
0%
2.4 s
2.4 s
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache find_event_relations[memory][10 events, #no filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
0%
3.9 ms
3.9 ms
1
2
Commits
Click on a commit to change the comparison range
Base
main
81bed18
+98.51%
refactor(event cache): allow deref state lock read/write guards to the state
4fd97b4
1 day ago
by bnjbvr
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs