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

databendlabs / openraft / 20404096920
88%

Build:
DEFAULT BRANCH: main
Ran 21 Dec 2025 03:36AM UTC
Jobs 1
Files 243
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

21 Dec 2025 03:26AM UTC coverage: 92.059% (-0.2%) from 92.302%
20404096920

push

github

drmingdrmer
refactor: add display modes to `RuntimeStatsDisplay`

Add three display modes for runtime statistics: Compact (default single-line),
Multiline (one item per line), and HumanReadable (formatted tables with
`tabled` crate). The human-readable mode uses rounded table borders,
right-aligned numbers, and thousand separators for better readability.

Changes:
- Add `DisplayMode` enum with `Compact`, `Multiline`, `HumanReadable` variants
- Add mode switching methods: `compact()`, `multiline()`, `human_readable()`
- Add `tabled` dependency for table formatting (optional, with `runtime-stats` feature)
- Update benchmark to use `multiline()` for periodic stats and `human_readable()` for final stats

Example output:

Multiline mode:
```
RuntimeStats:
  apply_batch: [total: 135314, P1: 1, P5: 1, P10: 10, P50: 80, P90: 224, P99: 640]
  append_batch: [total: 249302, P1: 1, P5: 1, P10: 1, P50: 28, P90: 128, P99: 512]
  replicate_batch: [total: 413453, P1: 0, P5: 0, P10: 0, P50: 24, P90: 192, P99: 640]
  commands:
    AppendEntries: 249302
    ReplicateCommitted: 135314
    ...
  raft_msgs:
    ClientWrite: 15681065
    ...
  notifications:
    Notify::VoteResponse: 3
    ...
```

HumanReadable mode:
```
Batch Sizes:
╭───────────┬─────────┬────┬────┬─────┬─────┬─────┬─────╮
│           │   Total │ P1 │ P5 │ P10 │ P50 │ P90 │ P99 │
├───────────┼─────────┼────┼────┼─────┼─────┼─────┼─────┤
│ Apply     │ 174,352 │  1 │  1 │  10 │  80 │ 224 │ 640 │
│ Append    │ 321,033 │  1 │  1 │   1 │  28 │ 128 │ 512 │
│ Replicate │ 532,942 │  0 │  0 │   0 │  24 │ 192 │ 640 │
╰───────────┴─────────┴────┴────┴─────┴─────┴─────┴─────╯
Commands:
╭───────────────────────────┬─────────╮
│ Command                   │   Count │
├───────────────────────────┼─────────┤
│ AppendEntries             │ 321,033 │
│ ReplicateCommitted        │ 174,352 │
│ ...                       │         │
╰───────────────────────────┴─────────╯
Raft Messages:
╭─────────────────┬────────────╮
│ Message         │  ... (continued)

0 of 48 new or added lines in 1 file covered. (0.0%)

3 existing lines in 1 file now uncovered.

15603 of 16949 relevant lines covered (92.06%)

142894.03 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
48
16.1
-11.04% openraft/src/core/runtime_stats.rs

Uncovered Existing Lines

Lines Coverage ∆ File
3
95.65
-3.26% openraft/src/core/heartbeat/worker.rs
Jobs
ID Job ID Ran Files Coverage
1 20404096920.1 21 Dec 2025 03:36AM UTC 243
92.06
GitHub Action Run
Source Files on build 20404096920
  • Tree
  • List 243
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20404096920
  • 6501c670 on github
  • Prev Build on main (#20403508631)
  • Next Build on main (#20405217801)
  • 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