Git Product home page Git Product logo

staccato's People

Contributors

56quarters avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

staccato's Issues

Flush out rest of the docs

There's a bunch of TODOs in the README file. Let's get rid of them or fill them out with some actual useful docs.

Avoid sorting values if possible

Values read in only need to be sorted when we're going to partition them by percentile (when we have a -p 75,90 flag present). We can speed up execution when we aren't going to do that by not sorting them.

Print something to stderr when reading from stdin

Seems fairly common for users to run a command they aren't familiar with for the first time with no arguments, expecting it to print help information. E.g.

st

In this case however, Staccato will just hang forever waiting for input from stdin. We should display something to stderr in this case letting people know what's going on and that they might try running st -h instead.

Example

st
notice: waiting for input on stdin. If this isn't what you want, try `st --help`

Multiple percentiles doesn't work at all

Comma separated values don't work at all. I think this used to work but it's obviously broken now. No tests either. Fix this and add some tests to the cli module.

$ st -p 90,95 benches/values-small.log 
count: 100
sum: 29.15473
mean: 0.29155
upper: 3.59286
lower: 0.00288
median: 0.03565
stddev: 0.58246

add 90th, 95th and 99th percentile

staccato currently prints the median (a.k.a. 2nd quartile a.k.a. 50th percentile). For latency statistics, the "shape" of the "long tail" is often very relevant, so I propose to print the 90th, 95th and 99th percentile as well.

Run tests for binary in Travis

Cargo doesn't run tests for binaries by default when you run it via cargo test. Instead, we'll have to add another test script / command / thing to our Travis CI config: cargo test --bin st.

Replace hardcoded references to `st`

Make sure all help or text emitted by Staccato uses $arg0 instead of just hardcoding st. This makes sure help output is consistent when the binary gets installed under a different name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.