Skip to content

ghusage 0.1.6

Choose a tag to compare

@tanahiro2010 tanahiro2010 released this 22 Nov 15:03
· 59 commits to dev since this release
v0.1.6
10f8504

Changes

  • JSON: in diff_stats, additions and deletions are now null when no commit has known line counts (coverage: "unavailable"). Before, they were 0, and only coverage showed that the value was unknown rather than zero lines. Partial sums are still numbers, with coverage: "partial". See JSON output. If a script reads these fields, handle null.

Performance

No change to the speed of ghusage itself in this release. Measured on Apple M4 (release build, 100,000 events, 50 runs after 5 warm-up runs, cargo bench --bench latency):

0.1.5 0.1.6 Target
Cached 7-day aggregation, p95 85 ms 82 ms ≤ 200 ms
Cached 30-day aggregation, p95 118 ms 106 ms ≤ 500 ms
100k event aggregation (overview), p95 75 ms 65 ms ≤ 1000 ms

The differences are within run-to-run variation (both runs were taken on a busy machine); the code paths are unchanged.

Development

  • CI now runs formatting, the benchmarks in test mode and the 100k-event terminal UI test on one Linux runner only, and links Windows tests with rust-lld. Per-platform release builds run only for pull requests into release. A push to dev went from 5.0 to 3.0 minutes.

Install / update

npm install -g ghusage@0.1.6

Full changelog: v0.1.5...v0.1.6

What's Changed

Full Changelog: v0.1.5...v0.1.6