• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

databendlabs / openraft / 20344216752
88%

Build:
DEFAULT BRANCH: main
Ran 18 Dec 2025 04:49PM UTC
Jobs 1
Files 238
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Dec 2025 03:48PM UTC coverage: 92.48% (-0.09%) from 92.566%
20344216752

push

github

drmingdrmer
perf: use Vec instead of HashMap for RuntimeStats counters

Replace HashMap-based counting with Vec and direct indexing for better
performance. Each Name enum now has an `index()` method and `COUNT`
constant for O(1) array access instead of hash lookups.

Changes:
- Add `COUNT` and `index()` to `RaftMsgName`, `CommandName`, `ExternalCommandName`, `SMCommandName`
- Replace `HashMap<Name, u64>` with `Vec<u64>` in `RuntimeStats`
- Add tests to verify index-to-name mappings are correct

76 of 86 new or added lines in 3 files covered. (88.37%)

111 existing lines in 8 files now uncovered.

15187 of 16422 relevant lines covered (92.48%)

147596.18 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
52.78
52.78% openraft/src/core/raft_msg/raft_msg_name.rs
2
95.58
-0.28% openraft/src/engine/command_name.rs
6
27.78
-1.07% openraft/src/core/runtime_stats.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.33
0.0% openraft/src/metrics/serde_instant.rs
2
92.92
-0.12% openraft/src/replication/stream_state.rs
3
82.8
-3.23% openraft/src/replication/snapshot_transmitter.rs
5
79.17
-20.83% openraft/src/core/sm/handle.rs
6
52.78
52.78% openraft/src/core/raft_msg/raft_msg_name.rs
6
90.77
-4.62% openraft/src/raft/raft_inner.rs
20
91.19
0.0% openraft/src/raft/mod.rs
68
90.23
-0.02% openraft/src/core/raft_core.rs
Jobs
ID Job ID Ran Files Coverage
1 20344216752.1 18 Dec 2025 04:49PM UTC 238
92.48
GitHub Action Run
Source Files on build 20344216752
  • Tree
  • List 238
  • Changed 13
  • Source Changed 9
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20344216752
  • 74a344ae on github
  • Prev Build on main (#20340037209)
  • Next Build on main (#20344985625)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc