Global Feed Post Login
Replying to Avatar Rusty Russell

My second week of Rust (only a few hours a day though: I am on vacation after all) has me reproducing and enhancing a tool I wrote in C. It takes multiple lines and runs stats on the numbers in it.

This is useful for quick benchmarks: `for i in $(seq 10); do /usr/bin/time myprog; done | linestats`. Each line with the same literal parts is combined, with numbers replaced by "min-max(mean+/-stddev)".

The C one wasn't very clever about decimals, so it needed a good rewrite. The new code works, but needs polish, more options, optimization, tests and documentation before I release it.

The good thing about these small projects is they don't get hamstrung by Rust's glacial build times!

Avatar
Gustavo 1w ago 💬 1

Love it. Big data telemetry kinda killed the use case a bit, but I still use the C one the other day! Percentile mode support would be neat.

Reply to this note

Please Login to reply.

Discussion

Avatar
Rusty Russell 1w ago

Hmm, I did a histogram mode, but it sucked if one value dominated. Percentiles a good idea though!

Thread collapsed