Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show 95th percentile for latency in interactive demos #329

Open
mgeisler opened this issue Apr 21, 2021 · 0 comments
Open

Show 95th percentile for latency in interactive demos #329

mgeisler opened this issue Apr 21, 2021 · 0 comments

Comments

@mgeisler
Copy link
Owner

We currently show the latency for the last wrapping done in cargo run --example interactive. It looks like this:

  Options:                                            Performance:
  - width: 75 (use ← and → to change)                 - build: release
  - break_words: false (toggle with Ctrl-b)           - words: 110
  - splitter: HyphenSplitter (cycle with Ctrl-s)      - characters: 593
  - algorithm: OptimalFit (toggle with Ctrl-o)        - latency: 212 usec

We could store the most recent measurements and show the 95th percentile latency instead of just showing the latest result.

We should then clear the histogram when the wrap options are changed — and perhaps also when enough text is typed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant