Skip to content

ghusage v0.2.0

Latest

Choose a tag to compare

@tanahiro2010 tanahiro2010 released this 24 Nov 13:36
· 16 commits to dev since this release
v0.2.0
2255020

Highlights

  • Faster report generation for large caches.
  • Pull requests opened for inspection remain available offline without being counted as your own activity.
  • Improved cache and coverage handling, including safer migrations for viewed pull requests.
  • More reliable date and time handling across reports.

Performance

Report generation for large caches and long periods is faster. On a copy of a real cache (112,850 events, 2,928 pull requests, 388 repositories; 5 warm-up runs, then 50 runs; load + overview, p95):

Period Before 0.2.0
366 days 137.0 ms 117.0 ms
3,000 days 161.8 ms 132.2 ms
30 days 65.9 ms 61.4 ms
7 days 38.9 ms 39.1 ms

On the synthetic benchmark (Apple M4, release build, 100,000 events, cargo bench --bench latency, p50 / p95), the differences from 0.1.6 are within run-to-run variation:

0.1.6 0.2.0 Target (p95)
100k event aggregation (overview, 1 year) 57.7 / 60.0 ms 55.5 / 56.8 ms ≤ 1000 ms
100k event aggregation (daily, 1 year) 57.5 / 59.0 ms 55.4 / 58.6 ms ≤ 1000 ms
Cached 7-day aggregation 74.3 / 91.4 ms 76.6 / 78.3 ms ≤ 200 ms
Cached 30-day aggregation 100.6 / 108.2 ms 104.3 / 107.7 ms ≤ 500 ms

Install

npm install -g ghusage@0.2.0

Prebuilt binaries are provided for macOS (Apple Silicon and Intel), Linux (x64 and arm64), and Windows (x64 and arm64).

See the README for setup and usage.

What's Changed

New Contributors

Full Changelog: v0.1.6...v0.2.0