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

Support benchmark.times? #159

Open
LilithHafner opened this issue Jan 10, 2025 · 0 comments
Open

Support benchmark.times? #159

LilithHafner opened this issue Jan 10, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@LilithHafner
Copy link
Owner

A Benchmark stores a vector of samples. This sounds quite reasonable. However, it is much more common to want to access just the times than just the first sample. Consequently, it would be nice to be able to access benchmark.times or benchmark.time instead of getproperty.(benchmark.samples, :time) or [s.time for s in benchmark.samples].

i.e. automatically broadcast getproperty over samples if the property is not :samples.

@LilithHafner LilithHafner added the enhancement New feature or request label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant