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

add printout of "time per unit" in nanoseconds #48

Open
tatumizer opened this issue Jan 15, 2020 · 1 comment
Open

add printout of "time per unit" in nanoseconds #48

tatumizer opened this issue Jan 15, 2020 · 1 comment

Comments

@tatumizer
Copy link

Current printout (time to run 10 times, in microseconds) might be good only for relative measurements and regression testing, but not for evaluation of the performance in absolute terms.
E.g. when we benchmark "list copy" operation using 100-element lists, we can tell how List.of compares with toList, but it tells nothing about actual performance. If we had printout in nanoseconds per 1 copied list item, we can compare it against common sense. Common sense, in this case, says that if we have a reading above 2 nanoseconds/item on a 3+Ghz processor, there's room for improvement. And if we measure 100 nanoseconds per item (instead of 2) then there's a lot of room for improvement. Etc.

@vaind
Copy link

vaind commented Aug 16, 2021

Hope it's fine to post this here, if not, please remove....

I've been missing some features in benchmark_harness as well, which led me to develop an alternative. After having it in-code in some projects, I've now decided to publish it for others, check out https://pub.dev/packages/benchmarking

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

No branches or pull requests

2 participants