Stream: general

Topic: simple bench parsing option

Natalie Popescu (May 20 2020 at 21:35, on Zulip):

hello! phd student learning rust here, wondering if anyone knows of a simple way to parse (already produced) cargo bench output? ideally want a format i can just pass to gnuplot or something of that sort. i am currently messing w a python script and regexes

Laurențiu Nicola (May 21 2020 at 04:40, on Zulip):

Hi! You should take a look at Criterion. It's more accurate, produces plots and also has a CSV output.

Laurențiu Nicola (May 21 2020 at 11:15, on Zulip):

Of course, that's only if you can change the benchmark code. If not, I don't know another way than parsing the output.

Natalie Popescu (May 21 2020 at 17:04, on Zulip):

Right, criterion seems like a great tool but unfortunately im looking for something a bit further downstream - thank you for the pointer though!

RalfJ (May 21 2020 at 17:21, on Zulip):

@Natalie Popescu maybe you are looking for something like this?

Laurențiu Nicola (May 21 2020 at 17:31, on Zulip):


LeSeulArtichaut (May 21 2020 at 17:51, on Zulip):

"Self-documenting code" :D

Natalie Popescu (May 21 2020 at 18:16, on Zulip):

ah yes cool, at the very least looks like that could help w the parsing.. thank you!!

Last update: Jun 05 2020 at 23:00UTC