Repository navigation
Improve compare output - #14
Conversation
|
Thanks for starting this! Let's go over it in our meeting this week. |
|
To recap our discussion today -- This looks great, and the JSON changes are exactly what I had in mind. To finish this PR, let's do the following:
|
|
@senior-zero is using nvbench to test thrust and would benefit from this script. We might start using this and working on it as we go. Are there any updates, @vyasr @shwina? I don't want to duplicate effort or create conflicts if you've got a newer version. |
|
Hey @allisonvacanti sorry I'm the bottleneck here, I've been focusing on a few other things this past week. I can reprioritize on Monday if you anticipate this getting used in the near future, I'm close to hitting a good stopping point on the project that's taken up most of my time this week. |
|
@vyasr Not a problem, feel free to continue prioritizing other work as needed. We can pick this up and work on it in the meantime. Just let us know when you're ready to start working on it again so we can sync up. |
|
@allisonvacanti I can't edit your checklist above, but @shwina and I worked on this today and finished up those items. Currently the output is Github-flavored Markdown but there are a few other easily available options (you can see them under the "Table Format" heading on this page). We think this PR can probably be merged at this stage pending review. There are still various TODO items in the code such as adding better statistical measures, but they can be tackled in future PRs. |
|
Thanks! I tried this out on an example, but it didn't work. Using the skip example from nvbench: I think the issue is that there are multiple benchmarks present in that file, and the parser may only be expecting one. I haven't looked at it too closely, though. Trying a single benchmark from Thrust, I get the following output: It's a bit too long to be useful, and I think the length is causing We'll need to split this up like the NVBench markdown output, where the benchmark name and device are used as headings and the axis parameters are parsed from the json The splitting-into-table-and-headings issue will be fairly involved, so let's worry about that later. But the first issue (the |
|
I have some time to work on this today -- just a heads up so we don't duplicate effort. |
…rmat to Github-style Markdown.
JSON encodes all numerics as `double`s, which would truncate int64_t. Write all generic numbers from `named_values` objects as strings. These are still distinguishable by their `type` properties.
- Handle multiple benchmarks. - Split output to resemble nvbench markdown output: - Headings for benchmarks / devices - Compact tables with axis values / stats - Handle `null` stdev (these are infinite, e.g. too few samples) - Format numbers, times, percentages similar to nvbench. - Add summary of total/pass/unknown/failure stats - Add new test.json files (with multiple benchmarks in each)
a5ddfd8 to
861f66c
Compare
|
Added some new test files, rebased, and updated the compare.py. Example output (raw)Example output (rendered)cub::DeviceRadixSort::SortKeys - Overview[0] NVIDIA GeForce GTX 1650
cub::DeviceRadixSort::SortKeys - Constant Values[0] NVIDIA GeForce GTX 1650
cub::DeviceRadixSort::SortKeys - Half Word[0] NVIDIA GeForce GTX 1650
Summary
|

This PR makes some changes to the JSON schema used for nvbench output and adds a new script to generate comparisons between multiple benchmarks. It builds on work by @allisonvacanti, who has the original version of this script in her fork.