Skip to content

Improve compare output - #14

Merged
alliepiper merged 18 commits into
NVIDIA:mainfrom
vyasr:enhanced_compare
Jun 22, 2021
Merged

alliepiper merged 18 commits into
NVIDIA:mainfrom
vyasr:enhanced_compare

Conversation

@vyasr

@vyasr vyasr commented May 3, 2021

Copy link
Copy Markdown
Contributor

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.

@alliepiper

Copy link
Copy Markdown
Contributor

Thanks for starting this! Let's go over it in our meeting this week.

@vyasr

vyasr commented May 10, 2021

Copy link
Copy Markdown
Contributor Author

Here's the sample:

image

@alliepiper

Copy link
Copy Markdown
Contributor

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:

  • Use the stdev from the baseline to determine if the "new" time has changed significantly.
  • Add a "Pass"/"Fail" column to the output table.
  • Return 0 or 1 from the script, depending on whether any benchmarks failed.
  • Change table output for markdown format (optional; only if easy to do).

@alliepiper

Copy link
Copy Markdown
Contributor

@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.

@vyasr

vyasr commented May 21, 2021

Copy link
Copy Markdown
Contributor Author

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.

@alliepiper

Copy link
Copy Markdown
Contributor

@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.

@vyasr

vyasr commented May 26, 2021

Copy link
Copy Markdown
Contributor Author

@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.

@vyasr
vyasr marked this pull request as ready for review May 26, 2021 18:04
@alliepiper

Copy link
Copy Markdown
Contributor

Thanks! I tried this out on an example, but it didn't work. Using the skip example from nvbench:

# bin/nvbench.example.skip --timeout 0.5 --json tmp.json
[...]
# python3 ~/src/nvbench/scripts/nvbench_compare.py tmp.json tmp.json
Traceback (most recent call last):
  File "/home/av/code/src/thrust_benchmark/nvbench/scripts/nvbench_compare.py", line 109, in <module>
    rows, faileds = zip(*get_row(cmp_benches, ref_benches))
  File "/home/av/code/src/thrust_benchmark/nvbench/scripts/nvbench_compare.py", line 42, in get_row
    for cmp_state_description, cmp_state in cmp_bench["states"].items():
AttributeError: 'list' object has no attribute 'items'

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:

Name                                               Parameters                                                                     Old - New        New Time        Old Time  New Std    Old Std    Status
-------------------------------------------------  ------------------------------------------------------------------------  --------------  --------------  --------------  ---------  ---------  --------
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=0 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^16  0.000000000000  0.000008237252  0.000008237252  0.077333%  0.077333%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=0 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^18  0.000000000000  0.000007214606  0.000007214606  0.057828%  0.057828%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=0 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^20  0.000000000000  0.000009342127  0.000009342127  0.049539%  0.049539%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=0 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^22  0.000000000000  0.000016405008  0.000016405008  0.026375%  0.026375%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=0 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^24  0.000000000000  0.000041560762  0.000041560762  0.012574%  0.012574%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=0 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^26  0.000000000000  0.000117651736  0.000117651736  0.004874%  0.004874%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=0 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^28  0.000000000000  0.000421277361  0.000421277361  0.001642%  0.001642%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=0 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^30  0.000000000000  0.001657188279  0.001657188279  0.001492%  0.001492%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=1 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^16  0.000000000000  0.000006972137  0.000006972137  0.059823%  0.059823%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=1 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^18  0.000000000000  0.000006672818  0.000006672818  0.024247%  0.024247%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=1 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^20  0.000000000000  0.000009106779  0.000009106779  0.019668%  0.019668%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=1 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^22  0.000000000000  0.000017269685  0.000017269685  0.013425%  0.013425%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=1 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^24  0.000000000000  0.000041499983  0.000041499983  0.005377%  0.005377%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=1 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^26  0.000000000000  0.000126717784  0.000126717784  0.002730%  0.002730%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=1 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^28  0.000000000000  0.000470701773  0.000470701773  0.002461%  0.002461%  PASS
cub::DeviceReduce::Reduce - cub::Sum vs CustomSum  Device=1 T=U8 ReduceOp=CustomSum Input=Pointer Pattern=Seq Elements=2^30  0.000000000000  0.001883664185  0.001883664185  0.006329%  0.006329%  PASS

It's a bit too long to be useful, and I think the length is causing tabulate to fallback to plain formatting instead of github.

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 axis_values map into distinct columns. This would produce something more compact:

# cub::DeviceReduce::Reduce - cub::Sum vs CustomSum

## [0] Quadro GV100

| T  | ReduceOp  | Input   | Pattern | Elements | [stats...] |
|----|-----------|---------|---------|----------|------------|
| U8 | CustomSum | Pointer | Seq     | 2^16     | [stats...] |
| U8 | CustomSum | Pointer | Seq     | 2^18     | [stats...] |
[...]

## [1] Quadro GP100

| T  | ReduceOp  | Input   | Pattern | Elements | [stats...] |
|----|-----------|---------|---------|----------|------------|
| U8 | CustomSum | Pointer | Seq     | 2^16     | [stats...] |
| U8 | CustomSum | Pointer | Seq     | 2^18     | [stats...] |
[...]

The splitting-into-table-and-headings issue will be fairly involved, so let's worry about that later. But the first issue (the AttributeError when multiple benchmarks are present) should be addressed before this is merged.

@alliepiper

Copy link
Copy Markdown
Contributor

I have some time to work on this today -- just a heads up so we don't duplicate effort.

alliepiper and others added 18 commits June 22, 2021 12:29
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)
@alliepiper

Copy link
Copy Markdown
Contributor

Added some new test files, rebased, and updated the compare.py.

Example output (raw)
# cub::DeviceRadixSort::SortKeys - Overview

## [0] NVIDIA GeForce GTX 1650

|  Key  |  Input  |  Pattern  |  Elements  |   Ref Time |   Ref Noise |   Cmp Time |   Cmp Noise |         Diff |   %Diff |  Status  |
|-------|---------|-----------|------------|------------|-------------|------------|-------------|--------------|---------|----------|
| bool  |  Rand   |  Ascend   |    2^16    |  33.347 us |      72.24% |  32.776 us |      40.41% |    -0.571 us |  -1.71% |   PASS   |
| bool  |  Rand   |  Ascend   |    2^18    |  41.401 us |      10.76% |  41.169 us |      15.85% |    -0.232 us |  -0.56% |   PASS   |
| bool  |  Rand   |  Ascend   |    2^20    |  94.997 us |       2.01% |  96.465 us |       8.74% |     1.468 us |   1.55% |   PASS   |
| bool  |  Rand   |  Ascend   |    2^22    | 302.191 us |       1.00% | 302.101 us |       2.02% |    -0.090 us |  -0.03% |   PASS   |
| bool  |  Rand   |  Ascend   |    2^24    |   1.106 ms |       0.68% |   1.093 ms |       0.34% |   -12.578 us |  -1.14% |   FAIL   |
| bool  |  Rand   |  Ascend   |    2^26    |   4.255 ms |       0.19% |   4.226 ms |       0.20% |   -28.904 us |  -0.68% |   FAIL   |
| bool  |  Rand   |  Ascend   |    2^28    |  19.612 ms |         inf |  19.131 ms |         inf |  -480.880 us |  -2.45% |   ????   |
| bool  |  Rand   |  Ascend   |    2^30    |  67.492 ms |         inf |  66.783 ms |         inf |  -708.603 us |  -1.05% |   ????   |
|  U8   |  Rand   |  Ascend   |    2^16    |  47.561 us |      19.64% |  47.156 us |      40.43% |    -0.405 us |  -0.85% |   PASS   |
|  U8   |  Rand   |  Ascend   |    2^18    |  73.542 us |       6.98% |  72.666 us |      11.04% |    -0.876 us |  -1.19% |   PASS   |
|  U8   |  Rand   |  Ascend   |    2^20    | 164.113 us |       4.73% | 157.818 us |       4.41% |    -6.295 us |  -3.84% |   PASS   |
|  U8   |  Rand   |  Ascend   |    2^22    | 533.421 us |       1.53% | 517.878 us |       1.50% |   -15.544 us |  -2.91% |   FAIL   |
|  U8   |  Rand   |  Ascend   |    2^24    |   1.937 ms |       0.74% |   1.942 ms |      23.45% |     4.748 us |   0.25% |   PASS   |
|  U8   |  Rand   |  Ascend   |    2^26    |   7.524 ms |       0.38% |   7.273 ms |       0.71% |  -250.884 us |  -3.33% |   FAIL   |
|  U8   |  Rand   |  Ascend   |    2^28    |  30.905 ms |         inf |  29.413 ms |         inf | -1492.160 us |  -4.83% |   ????   |
|  U8   |  Rand   |  Ascend   |    2^30    | 131.910 ms |         inf | 127.126 ms |         inf | -4783.974 us |  -3.63% |   ????   |
|  U16  |  Rand   |  Ascend   |    2^16    |  83.052 us |      12.44% |  73.298 us |      29.09% |    -9.754 us | -11.74% |   PASS   |
|  U16  |  Rand   |  Ascend   |    2^18    | 146.892 us |       3.58% | 137.600 us |       9.33% |    -9.293 us |  -6.33% |   FAIL   |
|  U16  |  Rand   |  Ascend   |    2^20    | 380.856 us |       2.93% | 374.083 us |       2.97% |    -6.772 us |  -1.78% |   PASS   |
|  U16  |  Rand   |  Ascend   |    2^22    |   1.168 ms |       1.59% |   1.138 ms |       1.43% |   -30.949 us |  -2.65% |   FAIL   |
|  U16  |  Rand   |  Ascend   |    2^24    |   4.149 ms |       0.60% |   4.036 ms |       1.08% |  -113.788 us |  -2.74% |   FAIL   |
|  U16  |  Rand   |  Ascend   |    2^26    |  15.912 ms |       0.30% |  15.587 ms |       0.53% |  -325.257 us |  -2.04% |   FAIL   |
|  U16  |  Rand   |  Ascend   |    2^28    |  67.574 ms |         inf |  65.217 ms |         inf | -2356.499 us |  -3.49% |   ????   |
|  U32  |  Rand   |  Ascend   |    2^16    |  89.075 us |      15.87% |  80.868 us |      26.92% |    -8.207 us |  -9.21% |   PASS   |
|  U32  |  Rand   |  Ascend   |    2^18    | 215.733 us |       2.43% | 205.485 us |       6.36% |   -10.248 us |  -4.75% |   FAIL   |
|  U32  |  Rand   |  Ascend   |    2^20    | 649.677 us |       1.05% | 638.705 us |       1.99% |   -10.972 us |  -1.69% |   FAIL   |
|  U32  |  Rand   |  Ascend   |    2^22    |   2.363 ms |       2.88% |   2.277 ms |       1.82% |   -85.390 us |  -3.61% |   FAIL   |
|  U32  |  Rand   |  Ascend   |    2^24    |   9.008 ms |       0.74% |   8.826 ms |       0.77% |  -181.665 us |  -2.02% |   FAIL   |
|  U32  |  Rand   |  Ascend   |    2^26    |  36.338 ms |       1.11% |  35.337 ms |       0.64% | -1000.948 us |  -2.75% |   FAIL   |
|  U32  |  Rand   |  Ascend   |    2^28    | 147.141 ms |         inf | 143.057 ms |         inf | -4084.435 us |  -2.78% |   ????   |
|  U64  |  Rand   |  Ascend   |    2^16    | 205.855 us |       6.35% | 179.673 us |      19.30% |   -26.182 us | -12.72% |   FAIL   |
|  U64  |  Rand   |  Ascend   |    2^18    | 543.904 us |       1.12% | 531.266 us |       4.06% |   -12.639 us |  -2.32% |   FAIL   |
|  U64  |  Rand   |  Ascend   |    2^20    |   1.811 ms |       0.99% |   1.796 ms |       1.42% |   -15.285 us |  -0.84% |   PASS   |
|  U64  |  Rand   |  Ascend   |    2^22    |   7.225 ms |       2.39% |   6.998 ms |       2.36% |  -227.410 us |  -3.15% |   FAIL   |
|  U64  |  Rand   |  Ascend   |    2^24    |  27.856 ms |       0.67% |  27.464 ms |       0.91% |  -392.624 us |  -1.41% |   FAIL   |
|  U64  |  Rand   |  Ascend   |    2^26    | 112.766 ms |         inf | 111.046 ms |         inf | -1720.116 us |  -1.53% |   ????   |
|  I8   |  Rand   |  Ascend   |    2^16    |  52.423 us |      19.02% |  49.761 us |      15.67% |    -2.662 us |  -5.08% |   PASS   |
|  I8   |  Rand   |  Ascend   |    2^18    |  83.373 us |       2.31% |  78.157 us |       7.66% |    -5.217 us |  -6.26% |   FAIL   |
|  I8   |  Rand   |  Ascend   |    2^20    | 167.420 us |       0.66% | 166.707 us |       3.76% |    -0.713 us |  -0.43% |   PASS   |
|  I8   |  Rand   |  Ascend   |    2^22    | 543.058 us |       1.02% | 541.413 us |       2.01% |    -1.645 us |  -0.30% |   PASS   |
|  I8   |  Rand   |  Ascend   |    2^24    |   1.955 ms |       0.69% |   1.930 ms |       1.05% |   -24.410 us |  -1.25% |   FAIL   |
|  I8   |  Rand   |  Ascend   |    2^26    |   7.590 ms |       0.62% |   7.558 ms |       0.67% |   -31.744 us |  -0.42% |   PASS   |
|  I8   |  Rand   |  Ascend   |    2^28    |  30.962 ms |         inf |  30.561 ms |         inf |  -401.168 us |  -1.30% |   ????   |
|  I8   |  Rand   |  Ascend   |    2^30    | 133.924 ms |         inf | 141.124 ms |         inf |     7.200 ms |   5.38% |   ????   |
|  I16  |  Rand   |  Ascend   |    2^16    |  75.090 us |       3.07% |  74.096 us |      12.00% |    -0.994 us |  -1.32% |   PASS   |
|  I16  |  Rand   |  Ascend   |    2^18    | 146.618 us |       2.39% | 141.421 us |       4.97% |    -5.197 us |  -3.54% |   FAIL   |
|  I16  |  Rand   |  Ascend   |    2^20    | 376.420 us |       1.01% | 374.840 us |       2.10% |    -1.580 us |  -0.42% |   PASS   |
|  I16  |  Rand   |  Ascend   |    2^22    |   1.155 ms |       1.06% |   1.163 ms |       1.61% |     7.964 us |   0.69% |   PASS   |
|  I16  |  Rand   |  Ascend   |    2^24    |   4.190 ms |       0.87% |   4.133 ms |       1.00% |   -57.234 us |  -1.37% |   FAIL   |
|  I16  |  Rand   |  Ascend   |    2^26    |  15.648 ms |       0.44% |  15.807 ms |       0.44% |   159.008 us |   1.02% |   FAIL   |
|  I16  |  Rand   |  Ascend   |    2^28    |  66.143 ms |         inf |  65.818 ms |         inf |  -325.504 us |  -0.49% |   ????   |
|  I32  |  Rand   |  Ascend   |    2^16    |  87.306 us |      18.73% |  81.605 us |      25.21% |    -5.701 us |  -6.53% |   PASS   |
|  I32  |  Rand   |  Ascend   |    2^18    | 212.523 us |       6.71% | 209.007 us |      12.13% |    -3.515 us |  -1.65% |   PASS   |
|  I32  |  Rand   |  Ascend   |    2^20    | 639.820 us |       1.38% | 643.886 us |       1.71% |     4.067 us |   0.64% |   PASS   |
|  I32  |  Rand   |  Ascend   |    2^22    |   2.309 ms |       2.03% |   2.314 ms |       2.15% |     4.922 us |   0.21% |   PASS   |
|  I32  |  Rand   |  Ascend   |    2^24    |   8.904 ms |       0.60% |   8.964 ms |       0.80% |    60.404 us |   0.68% |   FAIL   |
|  I32  |  Rand   |  Ascend   |    2^26    |  35.544 ms |       0.82% |  35.870 ms |       0.71% |   326.127 us |   0.92% |   FAIL   |
|  I32  |  Rand   |  Ascend   |    2^28    | 145.110 ms |         inf | 145.815 ms |         inf |   704.453 us |   0.49% |   ????   |
|  I64  |  Rand   |  Ascend   |    2^16    | 192.956 us |       8.92% | 182.430 us |       8.52% |   -10.526 us |  -5.45% |   PASS   |
|  I64  |  Rand   |  Ascend   |    2^18    | 513.230 us |       2.69% | 533.917 us |       2.35% |    20.687 us |   4.03% |   FAIL   |
|  I64  |  Rand   |  Ascend   |    2^20    |   1.780 ms |       1.50% |   1.786 ms |       0.96% |     5.515 us |   0.31% |   PASS   |
|  I64  |  Rand   |  Ascend   |    2^22    |   6.949 ms |       2.20% |   7.046 ms |       2.29% |    96.622 us |   1.39% |   PASS   |
|  I64  |  Rand   |  Ascend   |    2^24    |  27.467 ms |       0.92% |  27.411 ms |       0.56% |   -55.715 us |  -0.20% |   PASS   |
|  I64  |  Rand   |  Ascend   |    2^26    | 110.250 ms |         inf | 110.867 ms |         inf |   616.727 us |   0.56% |   ????   |
|  F32  |  Rand   |  Ascend   |    2^16    |  91.475 us |      30.60% |  76.458 us |      21.63% |   -15.017 us | -16.42% |   PASS   |
|  F32  |  Rand   |  Ascend   |    2^18    | 169.015 us |       6.83% | 179.042 us |       5.86% |    10.026 us |   5.93% |   FAIL   |
|  F32  |  Rand   |  Ascend   |    2^20    | 483.781 us |       2.13% | 490.240 us |       1.23% |     6.459 us |   1.34% |   FAIL   |
|  F32  |  Rand   |  Ascend   |    2^22    |   1.737 ms |       0.35% |   1.744 ms |       0.58% |     6.824 us |   0.39% |   FAIL   |
|  F32  |  Rand   |  Ascend   |    2^24    |   6.731 ms |       0.17% |   6.742 ms |       0.24% |    11.012 us |   0.16% |   PASS   |
|  F32  |  Rand   |  Ascend   |    2^26    |  26.739 ms |       0.08% |  26.744 ms |       0.06% |     4.902 us |   0.02% |   PASS   |
|  F32  |  Rand   |  Ascend   |    2^28    | 106.748 ms |         inf | 106.733 ms |         inf |   -15.392 us |  -0.01% |   ????   |
|  F64  |  Rand   |  Ascend   |    2^16    | 155.152 us |      10.91% | 170.315 us |      11.13% |    15.163 us |   9.77% |   PASS   |
|  F64  |  Rand   |  Ascend   |    2^18    | 487.991 us |       1.04% | 504.564 us |       1.37% |    16.573 us |   3.40% |   FAIL   |
|  F64  |  Rand   |  Ascend   |    2^20    |   1.725 ms |       0.46% |   1.748 ms |       0.71% |    23.546 us |   1.37% |   FAIL   |
|  F64  |  Rand   |  Ascend   |    2^22    |   6.674 ms |       0.27% |   6.702 ms |       0.18% |    28.209 us |   0.42% |   FAIL   |
|  F64  |  Rand   |  Ascend   |    2^24    |  26.413 ms |       0.08% |  26.491 ms |       0.07% |    78.021 us |   0.30% |   FAIL   |
|  F64  |  Rand   |  Ascend   |    2^26    | 106.548 ms |         inf | 106.188 ms |         inf |  -360.166 us |  -0.34% |   ????   |

# cub::DeviceRadixSort::SortKeys - Constant Values

## [0] NVIDIA GeForce GTX 1650

|  Key  |  Input  |  Pattern  |  Elements  |   Ref Time |   Ref Noise |   Cmp Time |   Cmp Noise |       Diff |   %Diff |  Status  |
|-------|---------|-----------|------------|------------|-------------|------------|-------------|------------|---------|----------|
|  U8   |  Const  |  Ascend   |    2^20    |  87.929 us |       2.95% |  90.362 us |       3.37% |   2.433 us |   2.77% |   PASS   |
|  U8   |  Const  |  Ascend   |    2^22    | 298.017 us |       1.02% | 298.149 us |       1.13% |   0.132 us |   0.04% |   PASS   |
|  U8   |  Const  |  Ascend   |    2^24    |   1.098 ms |       0.41% |   1.106 ms |       0.88% |   8.119 us |   0.74% |   FAIL   |
|  U8   |  Const  |  Ascend   |    2^26    |   4.270 ms |       0.72% |   4.266 ms |       0.32% |  -3.268 us |  -0.08% |   PASS   |
|  U8   |  Const  |  Ascend   |    2^28    |  16.930 ms |       0.42% |  17.073 ms |       1.05% | 142.894 us |   0.84% |   FAIL   |
|  U8   |  Const  |  Ascend   |    2^30    |  67.733 ms |       0.42% |  67.817 ms |       0.23% |  84.165 us |   0.12% |   PASS   |
|  U16  |  Const  |  Ascend   |    2^20    | 242.801 us |       1.44% | 244.662 us |       6.50% |   1.861 us |   0.77% |   PASS   |
|  U16  |  Const  |  Ascend   |    2^22    | 838.672 us |       0.42% | 838.960 us |       0.41% |   0.289 us |   0.03% |   PASS   |
|  U16  |  Const  |  Ascend   |    2^24    |   3.152 ms |       0.11% |   3.153 ms |       0.13% |   0.663 us |   0.02% |   PASS   |
|  U16  |  Const  |  Ascend   |    2^26    |  12.409 ms |       0.16% |  12.407 ms |       0.21% |  -2.315 us |  -0.02% |   PASS   |
|  U16  |  Const  |  Ascend   |    2^28    |  49.443 ms |       0.07% |  49.390 ms |       0.06% | -52.787 us |  -0.11% |   FAIL   |
|  U32  |  Const  |  Ascend   |    2^20    | 464.398 us |       0.58% | 464.014 us |       0.54% |  -0.384 us |  -0.08% |   PASS   |
|  U32  |  Const  |  Ascend   |    2^22    |   1.707 ms |       0.70% |   1.711 ms |       0.87% |   4.611 us |   0.27% |   PASS   |
|  U32  |  Const  |  Ascend   |    2^24    |   6.619 ms |       0.14% |   6.623 ms |       0.15% |   4.336 us |   0.07% |   PASS   |
|  U32  |  Const  |  Ascend   |    2^26    |  26.340 ms |       0.20% |  26.360 ms |       0.34% |  19.867 us |   0.08% |   PASS   |
|  U32  |  Const  |  Ascend   |    2^28    | 104.863 ms |       0.05% | 105.002 ms |       0.06% | 139.198 us |   0.13% |   FAIL   |
|  U64  |  Const  |  Ascend   |    2^20    |   1.694 ms |       0.28% |   1.695 ms |       0.35% |   1.345 us |   0.08% |   PASS   |
|  U64  |  Const  |  Ascend   |    2^22    |   6.596 ms |       0.35% |   6.602 ms |       0.37% |   6.344 us |   0.10% |   PASS   |
|  U64  |  Const  |  Ascend   |    2^24    |  26.087 ms |       0.13% |  26.098 ms |       0.07% |  10.572 us |   0.04% |   PASS   |
|  U64  |  Const  |  Ascend   |    2^26    | 104.254 ms |       0.07% | 104.341 ms |       0.09% |  86.896 us |   0.08% |   FAIL   |

# cub::DeviceRadixSort::SortKeys - Half Word

## [0] NVIDIA GeForce GTX 1650

|  Key  |  Input  |  Pattern  |  Elements  |  Bits  |   Ref Time |   Ref Noise |   Cmp Time |   Cmp Noise |        Diff |   %Diff |  Status  |
|-------|---------|-----------|------------|--------|------------|-------------|------------|-------------|-------------|---------|----------|
|  U8   |  Rand   |  Ascend   |    2^20    |  Half  |  81.717 us |       4.21% |  83.403 us |       4.59% |    1.686 us |   2.06% |   PASS   |
|  U8   |  Rand   |  Ascend   |    2^22    |  Half  | 269.436 us |       4.17% | 271.618 us |       3.78% |    2.182 us |   0.81% |   PASS   |
|  U8   |  Rand   |  Ascend   |    2^24    |  Half  | 944.862 us |       0.27% | 948.812 us |       0.74% |    3.950 us |   0.42% |   FAIL   |
|  U8   |  Rand   |  Ascend   |    2^26    |  Half  |   3.755 ms |       1.19% |   3.766 ms |       1.49% |   10.984 us |   0.29% |   PASS   |
|  U8   |  Rand   |  Ascend   |    2^28    |  Half  |  14.622 ms |         inf |  14.719 ms |         inf |   96.832 us |   0.66% |   ????   |
|  U8   |  Rand   |  Ascend   |    2^30    |  Half  |  64.995 ms |         inf |  64.522 ms |         inf | -472.672 us |  -0.73% |   ????   |
|  U16  |  Rand   |  Ascend   |    2^20    |  Half  | 248.981 us |       2.03% | 250.386 us |       2.20% |    1.405 us |   0.56% |   PASS   |
|  U16  |  Rand   |  Ascend   |    2^22    |  Half  | 775.461 us |       2.37% | 772.737 us |       1.67% |   -2.724 us |  -0.35% |   PASS   |
|  U16  |  Rand   |  Ascend   |    2^24    |  Half  |   2.707 ms |       0.70% |   2.722 ms |       0.73% |   14.582 us |   0.54% |   PASS   |
|  U16  |  Rand   |  Ascend   |    2^26    |  Half  |  10.589 ms |       0.79% |  10.544 ms |       0.59% |  -44.306 us |  -0.42% |   PASS   |
|  U16  |  Rand   |  Ascend   |    2^28    |  Half  |  43.291 ms |         inf |  43.335 ms |         inf |   43.760 us |   0.10% |   ????   |
|  U32  |  Rand   |  Ascend   |    2^20    |  Half  | 348.458 us |       3.06% | 348.796 us |       3.14% |    0.338 us |   0.10% |   PASS   |
|  U32  |  Rand   |  Ascend   |    2^22    |  Half  |   1.245 ms |       3.84% |   1.251 ms |       3.90% |    6.438 us |   0.52% |   PASS   |
|  U32  |  Rand   |  Ascend   |    2^24    |  Half  |   4.743 ms |       1.19% |   4.748 ms |       0.39% |    5.349 us |   0.11% |   PASS   |
|  U32  |  Rand   |  Ascend   |    2^26    |  Half  |  19.068 ms |       1.33% |  19.010 ms |       1.09% |  -58.788 us |  -0.31% |   PASS   |
|  U32  |  Rand   |  Ascend   |    2^28    |  Half  |  76.566 ms |         inf |  76.598 ms |         inf |   31.326 us |   0.04% |   ????   |
|  U64  |  Rand   |  Ascend   |    2^20    |  Half  | 932.511 us |       2.33% | 930.871 us |       1.95% |   -1.640 us |  -0.18% |   PASS   |
|  U64  |  Rand   |  Ascend   |    2^22    |  Half  |   3.669 ms |       4.22% |   3.672 ms |       4.36% |    3.217 us |   0.09% |   PASS   |
|  U64  |  Rand   |  Ascend   |    2^24    |  Half  |  14.098 ms |       0.25% |  14.079 ms |       0.16% |  -19.616 us |  -0.14% |   PASS   |
|  U64  |  Rand   |  Ascend   |    2^26    |  Half  |  56.841 ms |       1.33% |  56.995 ms |       1.27% |  154.015 us |   0.27% |   PASS   |

# Summary

- Total Matches: 117
  - Pass    (diff <= min_noise): 61
  - Unknown (infinite noise):    18
  - Failure (diff > min_noise):  38
Example output (rendered)

cub::DeviceRadixSort::SortKeys - Overview

[0] NVIDIA GeForce GTX 1650

Key Input Pattern Elements Ref Time Ref Noise Cmp Time Cmp Noise Diff %Diff Status
bool Rand Ascend 2^16 33.347 us 72.24% 32.776 us 40.41% -0.571 us -1.71% PASS
bool Rand Ascend 2^18 41.401 us 10.76% 41.169 us 15.85% -0.232 us -0.56% PASS
bool Rand Ascend 2^20 94.997 us 2.01% 96.465 us 8.74% 1.468 us 1.55% PASS
bool Rand Ascend 2^22 302.191 us 1.00% 302.101 us 2.02% -0.090 us -0.03% PASS
bool Rand Ascend 2^24 1.106 ms 0.68% 1.093 ms 0.34% -12.578 us -1.14% FAIL
bool Rand Ascend 2^26 4.255 ms 0.19% 4.226 ms 0.20% -28.904 us -0.68% FAIL
bool Rand Ascend 2^28 19.612 ms inf 19.131 ms inf -480.880 us -2.45% ????
bool Rand Ascend 2^30 67.492 ms inf 66.783 ms inf -708.603 us -1.05% ????
U8 Rand Ascend 2^16 47.561 us 19.64% 47.156 us 40.43% -0.405 us -0.85% PASS
U8 Rand Ascend 2^18 73.542 us 6.98% 72.666 us 11.04% -0.876 us -1.19% PASS
U8 Rand Ascend 2^20 164.113 us 4.73% 157.818 us 4.41% -6.295 us -3.84% PASS
U8 Rand Ascend 2^22 533.421 us 1.53% 517.878 us 1.50% -15.544 us -2.91% FAIL
U8 Rand Ascend 2^24 1.937 ms 0.74% 1.942 ms 23.45% 4.748 us 0.25% PASS
U8 Rand Ascend 2^26 7.524 ms 0.38% 7.273 ms 0.71% -250.884 us -3.33% FAIL
U8 Rand Ascend 2^28 30.905 ms inf 29.413 ms inf -1492.160 us -4.83% ????
U8 Rand Ascend 2^30 131.910 ms inf 127.126 ms inf -4783.974 us -3.63% ????
U16 Rand Ascend 2^16 83.052 us 12.44% 73.298 us 29.09% -9.754 us -11.74% PASS
U16 Rand Ascend 2^18 146.892 us 3.58% 137.600 us 9.33% -9.293 us -6.33% FAIL
U16 Rand Ascend 2^20 380.856 us 2.93% 374.083 us 2.97% -6.772 us -1.78% PASS
U16 Rand Ascend 2^22 1.168 ms 1.59% 1.138 ms 1.43% -30.949 us -2.65% FAIL
U16 Rand Ascend 2^24 4.149 ms 0.60% 4.036 ms 1.08% -113.788 us -2.74% FAIL
U16 Rand Ascend 2^26 15.912 ms 0.30% 15.587 ms 0.53% -325.257 us -2.04% FAIL
U16 Rand Ascend 2^28 67.574 ms inf 65.217 ms inf -2356.499 us -3.49% ????
U32 Rand Ascend 2^16 89.075 us 15.87% 80.868 us 26.92% -8.207 us -9.21% PASS
U32 Rand Ascend 2^18 215.733 us 2.43% 205.485 us 6.36% -10.248 us -4.75% FAIL
U32 Rand Ascend 2^20 649.677 us 1.05% 638.705 us 1.99% -10.972 us -1.69% FAIL
U32 Rand Ascend 2^22 2.363 ms 2.88% 2.277 ms 1.82% -85.390 us -3.61% FAIL
U32 Rand Ascend 2^24 9.008 ms 0.74% 8.826 ms 0.77% -181.665 us -2.02% FAIL
U32 Rand Ascend 2^26 36.338 ms 1.11% 35.337 ms 0.64% -1000.948 us -2.75% FAIL
U32 Rand Ascend 2^28 147.141 ms inf 143.057 ms inf -4084.435 us -2.78% ????
U64 Rand Ascend 2^16 205.855 us 6.35% 179.673 us 19.30% -26.182 us -12.72% FAIL
U64 Rand Ascend 2^18 543.904 us 1.12% 531.266 us 4.06% -12.639 us -2.32% FAIL
U64 Rand Ascend 2^20 1.811 ms 0.99% 1.796 ms 1.42% -15.285 us -0.84% PASS
U64 Rand Ascend 2^22 7.225 ms 2.39% 6.998 ms 2.36% -227.410 us -3.15% FAIL
U64 Rand Ascend 2^24 27.856 ms 0.67% 27.464 ms 0.91% -392.624 us -1.41% FAIL
U64 Rand Ascend 2^26 112.766 ms inf 111.046 ms inf -1720.116 us -1.53% ????
I8 Rand Ascend 2^16 52.423 us 19.02% 49.761 us 15.67% -2.662 us -5.08% PASS
I8 Rand Ascend 2^18 83.373 us 2.31% 78.157 us 7.66% -5.217 us -6.26% FAIL
I8 Rand Ascend 2^20 167.420 us 0.66% 166.707 us 3.76% -0.713 us -0.43% PASS
I8 Rand Ascend 2^22 543.058 us 1.02% 541.413 us 2.01% -1.645 us -0.30% PASS
I8 Rand Ascend 2^24 1.955 ms 0.69% 1.930 ms 1.05% -24.410 us -1.25% FAIL
I8 Rand Ascend 2^26 7.590 ms 0.62% 7.558 ms 0.67% -31.744 us -0.42% PASS
I8 Rand Ascend 2^28 30.962 ms inf 30.561 ms inf -401.168 us -1.30% ????
I8 Rand Ascend 2^30 133.924 ms inf 141.124 ms inf 7.200 ms 5.38% ????
I16 Rand Ascend 2^16 75.090 us 3.07% 74.096 us 12.00% -0.994 us -1.32% PASS
I16 Rand Ascend 2^18 146.618 us 2.39% 141.421 us 4.97% -5.197 us -3.54% FAIL
I16 Rand Ascend 2^20 376.420 us 1.01% 374.840 us 2.10% -1.580 us -0.42% PASS
I16 Rand Ascend 2^22 1.155 ms 1.06% 1.163 ms 1.61% 7.964 us 0.69% PASS
I16 Rand Ascend 2^24 4.190 ms 0.87% 4.133 ms 1.00% -57.234 us -1.37% FAIL
I16 Rand Ascend 2^26 15.648 ms 0.44% 15.807 ms 0.44% 159.008 us 1.02% FAIL
I16 Rand Ascend 2^28 66.143 ms inf 65.818 ms inf -325.504 us -0.49% ????
I32 Rand Ascend 2^16 87.306 us 18.73% 81.605 us 25.21% -5.701 us -6.53% PASS
I32 Rand Ascend 2^18 212.523 us 6.71% 209.007 us 12.13% -3.515 us -1.65% PASS
I32 Rand Ascend 2^20 639.820 us 1.38% 643.886 us 1.71% 4.067 us 0.64% PASS
I32 Rand Ascend 2^22 2.309 ms 2.03% 2.314 ms 2.15% 4.922 us 0.21% PASS
I32 Rand Ascend 2^24 8.904 ms 0.60% 8.964 ms 0.80% 60.404 us 0.68% FAIL
I32 Rand Ascend 2^26 35.544 ms 0.82% 35.870 ms 0.71% 326.127 us 0.92% FAIL
I32 Rand Ascend 2^28 145.110 ms inf 145.815 ms inf 704.453 us 0.49% ????
I64 Rand Ascend 2^16 192.956 us 8.92% 182.430 us 8.52% -10.526 us -5.45% PASS
I64 Rand Ascend 2^18 513.230 us 2.69% 533.917 us 2.35% 20.687 us 4.03% FAIL
I64 Rand Ascend 2^20 1.780 ms 1.50% 1.786 ms 0.96% 5.515 us 0.31% PASS
I64 Rand Ascend 2^22 6.949 ms 2.20% 7.046 ms 2.29% 96.622 us 1.39% PASS
I64 Rand Ascend 2^24 27.467 ms 0.92% 27.411 ms 0.56% -55.715 us -0.20% PASS
I64 Rand Ascend 2^26 110.250 ms inf 110.867 ms inf 616.727 us 0.56% ????
F32 Rand Ascend 2^16 91.475 us 30.60% 76.458 us 21.63% -15.017 us -16.42% PASS
F32 Rand Ascend 2^18 169.015 us 6.83% 179.042 us 5.86% 10.026 us 5.93% FAIL
F32 Rand Ascend 2^20 483.781 us 2.13% 490.240 us 1.23% 6.459 us 1.34% FAIL
F32 Rand Ascend 2^22 1.737 ms 0.35% 1.744 ms 0.58% 6.824 us 0.39% FAIL
F32 Rand Ascend 2^24 6.731 ms 0.17% 6.742 ms 0.24% 11.012 us 0.16% PASS
F32 Rand Ascend 2^26 26.739 ms 0.08% 26.744 ms 0.06% 4.902 us 0.02% PASS
F32 Rand Ascend 2^28 106.748 ms inf 106.733 ms inf -15.392 us -0.01% ????
F64 Rand Ascend 2^16 155.152 us 10.91% 170.315 us 11.13% 15.163 us 9.77% PASS
F64 Rand Ascend 2^18 487.991 us 1.04% 504.564 us 1.37% 16.573 us 3.40% FAIL
F64 Rand Ascend 2^20 1.725 ms 0.46% 1.748 ms 0.71% 23.546 us 1.37% FAIL
F64 Rand Ascend 2^22 6.674 ms 0.27% 6.702 ms 0.18% 28.209 us 0.42% FAIL
F64 Rand Ascend 2^24 26.413 ms 0.08% 26.491 ms 0.07% 78.021 us 0.30% FAIL
F64 Rand Ascend 2^26 106.548 ms inf 106.188 ms inf -360.166 us -0.34% ????

cub::DeviceRadixSort::SortKeys - Constant Values

[0] NVIDIA GeForce GTX 1650

Key Input Pattern Elements Ref Time Ref Noise Cmp Time Cmp Noise Diff %Diff Status
U8 Const Ascend 2^20 87.929 us 2.95% 90.362 us 3.37% 2.433 us 2.77% PASS
U8 Const Ascend 2^22 298.017 us 1.02% 298.149 us 1.13% 0.132 us 0.04% PASS
U8 Const Ascend 2^24 1.098 ms 0.41% 1.106 ms 0.88% 8.119 us 0.74% FAIL
U8 Const Ascend 2^26 4.270 ms 0.72% 4.266 ms 0.32% -3.268 us -0.08% PASS
U8 Const Ascend 2^28 16.930 ms 0.42% 17.073 ms 1.05% 142.894 us 0.84% FAIL
U8 Const Ascend 2^30 67.733 ms 0.42% 67.817 ms 0.23% 84.165 us 0.12% PASS
U16 Const Ascend 2^20 242.801 us 1.44% 244.662 us 6.50% 1.861 us 0.77% PASS
U16 Const Ascend 2^22 838.672 us 0.42% 838.960 us 0.41% 0.289 us 0.03% PASS
U16 Const Ascend 2^24 3.152 ms 0.11% 3.153 ms 0.13% 0.663 us 0.02% PASS
U16 Const Ascend 2^26 12.409 ms 0.16% 12.407 ms 0.21% -2.315 us -0.02% PASS
U16 Const Ascend 2^28 49.443 ms 0.07% 49.390 ms 0.06% -52.787 us -0.11% FAIL
U32 Const Ascend 2^20 464.398 us 0.58% 464.014 us 0.54% -0.384 us -0.08% PASS
U32 Const Ascend 2^22 1.707 ms 0.70% 1.711 ms 0.87% 4.611 us 0.27% PASS
U32 Const Ascend 2^24 6.619 ms 0.14% 6.623 ms 0.15% 4.336 us 0.07% PASS
U32 Const Ascend 2^26 26.340 ms 0.20% 26.360 ms 0.34% 19.867 us 0.08% PASS
U32 Const Ascend 2^28 104.863 ms 0.05% 105.002 ms 0.06% 139.198 us 0.13% FAIL
U64 Const Ascend 2^20 1.694 ms 0.28% 1.695 ms 0.35% 1.345 us 0.08% PASS
U64 Const Ascend 2^22 6.596 ms 0.35% 6.602 ms 0.37% 6.344 us 0.10% PASS
U64 Const Ascend 2^24 26.087 ms 0.13% 26.098 ms 0.07% 10.572 us 0.04% PASS
U64 Const Ascend 2^26 104.254 ms 0.07% 104.341 ms 0.09% 86.896 us 0.08% FAIL

cub::DeviceRadixSort::SortKeys - Half Word

[0] NVIDIA GeForce GTX 1650

Key Input Pattern Elements Bits Ref Time Ref Noise Cmp Time Cmp Noise Diff %Diff Status
U8 Rand Ascend 2^20 Half 81.717 us 4.21% 83.403 us 4.59% 1.686 us 2.06% PASS
U8 Rand Ascend 2^22 Half 269.436 us 4.17% 271.618 us 3.78% 2.182 us 0.81% PASS
U8 Rand Ascend 2^24 Half 944.862 us 0.27% 948.812 us 0.74% 3.950 us 0.42% FAIL
U8 Rand Ascend 2^26 Half 3.755 ms 1.19% 3.766 ms 1.49% 10.984 us 0.29% PASS
U8 Rand Ascend 2^28 Half 14.622 ms inf 14.719 ms inf 96.832 us 0.66% ????
U8 Rand Ascend 2^30 Half 64.995 ms inf 64.522 ms inf -472.672 us -0.73% ????
U16 Rand Ascend 2^20 Half 248.981 us 2.03% 250.386 us 2.20% 1.405 us 0.56% PASS
U16 Rand Ascend 2^22 Half 775.461 us 2.37% 772.737 us 1.67% -2.724 us -0.35% PASS
U16 Rand Ascend 2^24 Half 2.707 ms 0.70% 2.722 ms 0.73% 14.582 us 0.54% PASS
U16 Rand Ascend 2^26 Half 10.589 ms 0.79% 10.544 ms 0.59% -44.306 us -0.42% PASS
U16 Rand Ascend 2^28 Half 43.291 ms inf 43.335 ms inf 43.760 us 0.10% ????
U32 Rand Ascend 2^20 Half 348.458 us 3.06% 348.796 us 3.14% 0.338 us 0.10% PASS
U32 Rand Ascend 2^22 Half 1.245 ms 3.84% 1.251 ms 3.90% 6.438 us 0.52% PASS
U32 Rand Ascend 2^24 Half 4.743 ms 1.19% 4.748 ms 0.39% 5.349 us 0.11% PASS
U32 Rand Ascend 2^26 Half 19.068 ms 1.33% 19.010 ms 1.09% -58.788 us -0.31% PASS
U32 Rand Ascend 2^28 Half 76.566 ms inf 76.598 ms inf 31.326 us 0.04% ????
U64 Rand Ascend 2^20 Half 932.511 us 2.33% 930.871 us 1.95% -1.640 us -0.18% PASS
U64 Rand Ascend 2^22 Half 3.669 ms 4.22% 3.672 ms 4.36% 3.217 us 0.09% PASS
U64 Rand Ascend 2^24 Half 14.098 ms 0.25% 14.079 ms 0.16% -19.616 us -0.14% PASS
U64 Rand Ascend 2^26 Half 56.841 ms 1.33% 56.995 ms 1.27% 154.015 us 0.27% PASS

Summary

  • Total Matches: 117
    • Pass (diff <= min_noise): 61
    • Unknown (infinite noise): 18
    • Failure (diff > min_noise): 38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants