Repository navigation
Releases
Releases · auduny/statpipe
Statpipe 1.2.1
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
--linefreqnever printed intermediate output--maxlinesparsed one line too many--multimisattributed alternation groups like(a)|(b)— phantom keys and totals over 100%--groupcounted 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
.deband.rpmattached 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
--helpsynced and completed (documented--group, correct defaults and flags) - Examples are runnable against the bundled
testfiles/