-
Notifications
You must be signed in to change notification settings - Fork 22
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
Allow running a single bench from a file #58
Comments
Would you like to send a PR implementing this feature? :) |
Sure, need to find some time for it though :) |
Doesn't this already work? When I specify a file, it runs exactly that one for me with the current version:
It only runs that single bench file and not others. That is handled in the paths param that is processed here: https://github.com/alco/benchfella/blob/master/lib/mix/tasks/bench.ex#L100 |
Yes but this is about running just one benchmark from a particular file. (you can have multiple benchmarks in a single file). So adding a colon and the line number to the path argument. |
I created a PR for this a while back, see #59. |
Oh!!! Nice!! Yea, I saw the PR but I overlooked the details in the original comment. 👍 Any idea if this is still being maintained? I am starting to use it regularly. |
I'm not sure... @alco ? https://github.com/PragTob/benchee seems to be getting more love.. |
Yea unfortunately Benchee takes a different approach and everything is centered around comparing different ways of doing the same thing. It really did not fit my benchmarking needs. I may just have to fork benchfella so we can maintain this. Benchfella is great for exactly what we needed |
Similar to
mix test file:line
, e.g.:mix bench bench/template_bench.exs:37
The text was updated successfully, but these errors were encountered: