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

Bench as a standalone iterator step. #48

Open
RCasatta opened this issue May 12, 2022 · 0 comments
Open

Bench as a standalone iterator step. #48

RCasatta opened this issue May 12, 2022 · 0 comments

Comments

@RCasatta
Copy link
Owner

That's why I had benching as a standalone iterator step.

https://github.com/dpc/block-iter/blob/40578bb5eca918e7570b8ab82370ee88cebb7a9f/libs/main/src/bench.rs#L6

so one can insert .bench_x() at the end of a middle of an iterator chain and get stats. Though I now see that I forgot to make the bench_x be an iterator that returns the items it's benching, so right now it only works at the end, as a sort of of a .for_each() or .count().

Originally posted by @dpc in #42 (comment)

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

1 participant