matrix-org
matrix-rust-sdk
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
feat(sdk): Flatten the hierarchy of caches in the Event Cache, part 2: Pinned events
#6568
Merged
Comparing
Hywan:features/event-cache-refactoring-flatten-pinned-events
(
42fef16
) with
features/event-cache-refactoring
(
7677f09
)
CodSpeed Performance Gauge
+49%
Improvement
1
Untouched
49
No successful run was found on
features/event-cache-refactoring
(
80fabde
) during the generation of this report, so
main
(
7677f09
) was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
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
+49%
169.4 ms
113.8 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.4 ms
6.2 ms
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
+1%
7.1 ms
7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache find_event_relations[SQLite][1000 events, #no filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
+1%
69.5 ms
68.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache find_event_relations[SQLite][10 events, #no filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
+1%
937.4 µs
929.1 µ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.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk writing [memory store][10]
benchmarks/benches/linked_chunk.rs::event_cache::writing::Linked chunk writing
CodSpeed Performance Gauge
+1%
55.2 µs
54.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk lazy loader[sqlite store][10]
benchmarks/benches/linked_chunk.rs::event_cache::reading::Linked chunk reading
CodSpeed Performance Gauge
+1%
398.3 µs
395.4 µs
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
+1%
15 ms
14.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk writing [sqlite store][10]
benchmarks/benches/linked_chunk.rs::event_cache::writing::Linked chunk writing
CodSpeed Performance Gauge
+1%
599.8 µs
596.5 µs
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.8 ms
56.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk writing [sqlite store][1000]
benchmarks/benches/linked_chunk.rs::event_cache::writing::Linked chunk writing
CodSpeed Performance Gauge
0%
35.9 ms
35.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Linked chunk writing [none][100]
benchmarks/benches/linked_chunk.rs::event_cache::writing::Linked chunk writing
CodSpeed Performance Gauge
0%
91.9 µs
91.6 µs
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.7 ms
73.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Event cache find_event_relations[SQLite][10 events, edits filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
0%
989.6 µs
987.5 µs
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 writing [memory store][1000]
benchmarks/benches/linked_chunk.rs::event_cache::writing::Linked chunk writing
CodSpeed Performance Gauge
0%
3.8 ms
3.8 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%
30.4 ms
30.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Restore session [SQLite][clear]
benchmarks/benches/store_bench.rs::benches::restore_session::Client reload
CodSpeed Performance Gauge
0%
576.4 ms
576.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
Devices collecting [SQLite][2003 devices]
benchmarks/benches/crypto_bench.rs::benches::devices_missing_sessions_collecting::Devices missing sessions collecting
CodSpeed Performance Gauge
0%
99.4 ms
99.4 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 find_event_relations[memory][100 events, #no filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
0%
52.8 ms
52.8 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.
Event cache find_event_relations[memory][100 events, edits filter]
benchmarks/benches/event_cache.rs::event_cache::find_event_relations::Event cache room updates
CodSpeed Performance Gauge
0%
52.8 ms
52.8 ms
1
2
Commits
Click on a commit to change the comparison range
Base
main
7677f09
-2.06%
chore(sdk): `PinnedEventsCache::new` takes a `WeakRoom` instead of a `Room`.
c1aad24
10 days ago
by Hywan
+50.93%
chore: Remove an unused `reload` method.
42fef16
3 days ago
by Hywan
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs