Skip to content

Releases

Statpipe 1.2.1

Choose a tag to compare

@github-actions github-actions released this 02 Oct 11:11

Project status

This has been my pet project since 2009. It's a part of my daily tools chest.
I did have some bugs that I wanted to fix and I've used used it to play a bit with AI and Github release management to release 1.2.1. The reason for 1.2.1 and not 1.1.0 or 1.2.0 is just artifacts of immutable tags protection while playing with releases. Sorry for that.

What's changed since 1.0

New features

  • --group a,b,c — bucket numeric input into groups, e.g. response times (#5)
  • --maxhits N — quit after N hits (#6)
  • --min N — only print keys with at least N hits (#7)

Performance

  • Regexes are now compiled once at startup instead of on every line.
    With multiple patterns this is ~4x faster (4 regexes over 480k lines:
    3.6s → 0.86s). Single-pattern runs are unchanged — Perl already
    cached that case.

Bug fixes

  • --linefreq never printed intermediate output
  • --maxlines parsed one line too many
  • --multi misattributed alternation groups like (a)|(b) — phantom keys and totals over 100%
  • --group counted every line as <rest> and showed a 0% total
  • Divide-by-zero with --relative + --group

Install / packaging

  • Homebrew tap: brew tap auduny/statpipe https://github.com/auduny/statpipe && brew install auduny/statpipe/statpipe
  • Prebuilt .deb and .rpm attached to every release (arch-independent, only needs perl)
  • Releases are built by a GitHub Action; the Homebrew formula updates itself on every tag

Internals / docs

  • use strict;
  • Test suite: 26 bats tests
  • README and --help synced and completed (documented --group, correct defaults and flags)
  • Examples are runnable against the bundled testfiles/