Repository navigation
Enhance benchmarking - #12332
Enhance benchmarking#12332FilipAndersson245 wants to merge 7 commits into
Conversation
|
Just one comment above but I'm fine with the rest of the PR. I just don't want this change to cause our publishing to puke. |
|
If someone in core could help me test this out it would be appreciated 👏 |
|
I changed the default comparason metric from |
|
Im trying to rewrite this PR and instead using the main branch of divan and instead try to parse down the graphical output from divan. |
|
I checked it, and it seems we can't publish a crate with unpublished dependencies, so the git link won't work. It is a bit unfortunate that divan development has slowed down. Last commit was 2 months ago and divan's PR implementing file output hasn't yet received any maintainer comments despite being open since January. We can roll with your parsing script, but if divan ends up being unmaintained, we might need to switch back to criterion or something that's at least somewhat maintained. |
I have a new script that parses the raw output, in the oven, probably try to get it in this PR, so we don`t have to use a PR. But yee divan does not seem quite as active as one could hope as of now. I'm open to the idea of moving back as more tools support criterion, but I enjoy the simplified benchmarking on divian more. Criterion also is not as active as one could wish for. |
|
@fdncred @kubouch I have tried out a new approach that relies on parsing the visual printout of divan, I think its decent, but may break if they change their format. The new markdown display format
Nushell record look |
|
Would it be possible to modify the output to not contain the empty entries? It could be made into a tree structure, or added as a prefix, e.g., Otherwise, I think we could roll with this and see how it goes with divan's development in the future. |
|
I think this works fine, i am not to sure how to format the data correctly for that. I think this fits nicely in github markdown table. |
|
It looks fine, but it's harder to do any processing with it. But we can keep it as-is, since it's still an improvement over having no parsing. The suggestion I made can be added later as another postprocessing step, for example. |
|
I am thinking on what you said @kubouch and maybe Criterion would be better, in the least part cause it so standardized in the community. And would most likely live on in some form in the longterm. |
|
Yeah, divan seems really cool, but is more uncertain than criterion. We could switch back to criterion and see what happens with divan. |
My only problem is that the maintenance, status of Criterion is quite uncertain also, as the main contributor have not committed in almost 2 years. I am becoming inspired to write my own 😎. |
|
Haha, that's the way :-D. Maybe it would be worth checking with the divan maintainer and perhaps offering help with the maintenance instead of starting from scratch. The main plus of criterion is being able to get some structured data out of it (e.g., JSON). I've been playing with ideas of how to set up continuous benchmark tracking, but it's quite essential to be able to reliably output structured data. If we could get the JSON PR landed to divan, we could just continue using divan as long as it works in the current form. |
|
yee, I like divans simpler sapling strategy that allows it to be a lot faster compared to criterion. But it fell criterion relayed more on robust statistics when describing their results. divan is more 👁️ statistics. |
|
I have create an alternative PR where i migrate the benchmarks back to criterion, but after the talk jon had, that was linked in the weekly meeting I have started to try out tango.rs and it seem very interesting, it works by compiling two versions of a program and comparing them. I may explore if that would be a better alternative. As I am not that sold on criterion either as it's slow and not as robust as it gives the shine of. |
|
where are we at on the benchmarks? does this pr need to land for the alternate or are we chosing between the two? |
|
@fdncred We have 3 options,
I am personally quite annoyed about how slow criterion is and how it says its statistically significant changes but I fell quite often I see random multi digit changes between run. Tango seem both faster and more stable as what I can see, It also seem to already support file exports, And is actively maintained. I was initially made aware of Tango from Jon Gjengset latest Rust Talk. |

Description
closes #12331
This PR does 3 things
User-Facing Changes
Tests + Formatting
After Submitting