This is an archive of the discontinued LLVM Phabricator instance.

[libc][benchmark] Add display option to render.py3
ClosedPublic

Authored by avieira on Jul 8 2020, 3:54 AM.

Details

Summary

Whilst looking at the LLVM libc benchmarks I found the need to display the ‘sizes’ of the datasets against ‘bytes/cycle’ rather than ‘time’. For this reason I added an option called ‘—display’ to enable to switch between the different modes. This was just for some local tests, but I thought it might be useful to others upstream.

Diff Detail

Event Timeline

avieira created this revision.Jul 8 2020, 3:54 AM
lebedev.ri resigned from this revision.Jul 8 2020, 3:59 AM
gchatelet requested changes to this revision.Jul 9 2020, 2:05 AM
gchatelet added inline comments.
libc/benchmarks/render.py3
135

Python being what it is would you mind hoisting root["Host"]["CpuFrequency"] out of the for loops?

This revision now requires changes to proceed.Jul 9 2020, 2:05 AM
avieira updated this revision to Diff 276691.Jul 9 2020, 3:40 AM

Hoisted frequency out of invariant loops.

gchatelet accepted this revision.Jul 9 2020, 5:24 AM
This revision is now accepted and ready to land.Jul 9 2020, 5:24 AM

Thanks for the contribution @avieira : )

This revision was automatically updated to reflect the committed changes.