[PATCH v2 3/5] benchtests: Add a script to convert benchout string JSON to CSV
Siddhesh Poyarekar
siddhesh@gotplt.org
Thu Jul 29 04:42:55 GMT 2021
On 7/29/21 7:26 AM, naohirot--- via Libc-alpha wrote:
> I'm having a hard time to analyze string benchmark results.
> 'jq' was chosen to just get my job done quickly, because it's natural
> for me to process JSON than python.
>
> I believe that most of people who tried to improve string ifunc may
> have developed similar tools in their local, and not shared.
> And those people must be in the same situation which doesn't allow to
> spend time to port it to another language or sort out to be useful for
> other people because it's not their primary job, but side way job.
>
> It would be nice if we can stop that each developer develops similar
> tools again and again.
Most people in the community who work in string function improvements
tend to use (and improve wherever it is lacking)
benchtests/scripts/compare_strings.py for their result analysis. Adding
a flag to dump csv to that script ought to be trivial if that's what you
need.
The script is under-documented though, so perhaps a wiki page describing
what the script does and various example uses would go a very long way.
> So is there any possibility to be accepted to be able to share these
> trivial tools if install.texi is updated?
The reason for emitting json is precisely to allow developers to
implement their own analysis tools around them when their use cases are
niche. Your specific use case is not niche and could be added as a flag
to compare_strings.py if needed. You only need a new flag --csv (or -o
csv, tab, etc.) to print in csv instead of the current output, which is
meant for reading on the terminal.
Siddhesh
More information about the Libc-alpha
mailing list