Skip to content

Use human readable durations #296

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

414owen
Copy link
Contributor

@414owen 414owen commented Feb 11, 2025

Benchmark reports that show, eg. 472666693ns/iter, are very difficult to scan.

This change formats benchmarks measured in ns/iter with a more human readable duration.

Example output: 414owen/outlines-core#7

@ktrz

@414owen 414owen force-pushed the os/pretty-durations branch from 627f3b2 to 6992a91 Compare February 11, 2025 16:03
@414owen 414owen marked this pull request as draft February 11, 2025 16:19
@414owen 414owen force-pushed the os/pretty-durations branch 3 times, most recently from c049ca9 to 8d0f52a Compare February 11, 2025 18:18
@ktrz
Copy link
Member

ktrz commented Mar 12, 2025

Thank you for your contribution @414owen!

Could you please have a look at the failing tests and lint checks and fix those issues?

@414owen 414owen force-pushed the os/pretty-durations branch 4 times, most recently from 9592783 to bfec205 Compare May 16, 2025 21:59
@414owen 414owen force-pushed the os/pretty-durations branch from bfec205 to e069778 Compare May 17, 2025 00:01
@414owen
Copy link
Contributor Author

414owen commented May 17, 2025

@ktrz this should be ready for another pair of eyes

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

Successfully merging this pull request may close these issues.

2 participants