Skip to content

Default benchmark units to milliseconds.

Nick Thompson requested to merge (removed):benchmark_units into master

The default printer for google benchmark prints the time taken to perform a task in nanoseconds. This is a bad default for VTK-m, where host-device transfer is on the order of milliseconds.

This changes the default printing unit to milliseconds and makes the benchmarks much easier to read:

---------------------------------------------------------------------------------------------------------------------
Benchmark                                                                           Time             CPU   Iterations
---------------------------------------------------------------------------------------------------------------------
BenchGradientScalar/manual_time                                                   362 ms          370 ms            2
BenchGradientVector/manual_time                                                  2514 ms         2540 ms            1
BenchGradientVectorRow/manual_time                                               2397 ms         2422 ms            1
BenchGradientPoint/manual_time                                                    403 ms          403 ms            2
BenchGradientDivergence/manual_time                                              2394 ms         2396 ms            1
BenchGradientVorticity/manual_time                                               2432 ms         2441 ms            1
BenchGradientQCriterion/manual_time                                              2525 ms         2528 ms            1
BenchGradientAll/manual_time                                                      833 ms          875 ms            1
BenchThreshold/manual_time                                                        454 ms          476 ms            2
BenchThresholdPoints/CompactPts:0/manual_time                                     220 ms          222 ms            3
BenchThresholdPoints/CompactPts:1/manual_time                                    3634 ms         3645 ms            1
BenchCellAverage/manual_time                                                     98.7 ms          102 ms            7
BenchPointAverage/manual_time                                                     343 ms          346 ms            2
BenchWarpScalar/manual_time                                                       695 ms          704 ms            1
BenchWarpVector/manual_time                                                       660 ms          669 ms            1
BenchContour/NIsoVals:1/MergePts:0/GenNormals:0/FastNormals:0/manual_time         101 ms          101 ms            7
BenchContour/NIsoVals:1/MergePts:1/GenNormals:0/FastNormals:0/manual_time         101 ms          101 ms            7
BenchContour/NIsoVals:1/MergePts:0/GenNormals:1/FastNormals:0/manual_time         149 ms          149 ms            5
BenchContour/NIsoVals:1/MergePts:0/GenNormals:1/FastNormals:1/manual_time         173 ms          174 ms            4
BenchContour/NIsoVals:3/MergePts:0/GenNormals:0/FastNormals:0/manual_time         294 ms          294 ms            2
BenchContour/NIsoVals:3/MergePts:1/GenNormals:0/FastNormals:0/manual_time         296 ms          297 ms            2
BenchContour/NIsoVals:3/MergePts:0/GenNormals:1/FastNormals:0/manual_time         522 ms          523 ms            1
BenchContour/NIsoVals:3/MergePts:0/GenNormals:1/FastNormals:1/manual_time         440 ms          443 ms            2
BenchContour/NIsoVals:12/MergePts:0/GenNormals:0/FastNormals:0/manual_time       2407 ms         2412 ms            1

Merge request reports

Loading