Repository navigation
Clean up ORC reader benchmarks with NVBench - #11543
Conversation
|
Discussed offline and decided to move the options benchmarks to NVBench as well in this PR. Will review once that's in. |
Codecov Report
@@ Coverage Diff @@
## branch-22.10 #11543 +/- ##
===============================================
Coverage ? 86.40%
===============================================
Files ? 145
Lines ? 22958
Branches ? 0
===============================================
Hits ? 19837
Misses ? 3121
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
| state.add_element_count(static_cast<double>(data_size) / time, "bytes_per_second"); | ||
| state.add_element_count(mem_stats_logger.peak_memory_usage(), "peak_memory_usage"); | ||
| state.add_element_count(source_sink.size(), "encoded_file_size"); |
There was a problem hiding this comment.
This use of add_element_count surprises me. We're basically using it to store arbitrary integers, stretching its core purpose a bit.
Also what do you think about adding state.add_global_memory_writes to show the size of the file in memory?
There was a problem hiding this comment.
We're basically using it to store arbitrary integers, stretching its core purpose a bit.
Right, I see your concern. The latter two reporting peak memory usage and encoded file size are still fine but an API like add_element_rate would be more proper for mesurement like bytes per second.
Also what do you think about adding state.add_global_memory_writes to show the size of the file in memory?
I spent some time looking into auto throughput metrics like collect_stores_efficiency but found it's not easy to use since running it requires the system have performance counter privileges. e.g.
Run: [1/8] throughput_bench [Device=0 T=1 Stride=1]
Warn: CUPTI failed to construct profiler: /home/yunsongw/Work/nvbench/nvbench/cupti_profiler.cxx:48: CUPTI call returned error: CUPTI_ERROR_INSUFFICIENT_PRIVILEGES
Fail: Unexpected error: /home/yunsongw/Work/nvbench/nvbench/cupti_profiler.cxx:48: CUPTI call returned error: CUPTI_ERROR_INSUFFICIENT_PRIVILEGES
Run: [2/8] throughput_bench [Device=0 T=1 Stride=4]
Warn: CUPTI failed to construct profiler: /home/yunsongw/Work/nvbench/nvbench/cupti_profiler.cxx:48: CUPTI call returned error: CUPTI_ERROR_INSUFFICIENT_PRIVILEGES
Fail: Unexpected error: /home/yunsongw/Work/nvbench/nvbench/cupti_profiler.cxx:48: CUPTI call returned error: CUPTI_ERROR_INSUFFICIENT_PRIVILEGESbytes_per_second measurement already includes the information provided by add_global_memory_writes so adding it won't help much in this particular case.
vuule
left a comment
There was a problem hiding this comment.
partial review, looking great so far
Co-authored-by: Vukasin Milovanovic <[email protected]>
Co-authored-by: Vukasin Milovanovic <[email protected]>
Here's an example output of the new benchmark. |
… refactor-orc-bench
|
@gpucibot merge |
Description
Issue #10941
This PR rewrites the existing ORC reader benchmarks with nvbench w.r.t. #7960. It improves the
inputtest case in which all data types were benchmarked with all compression and IO types. By splittinginputintodecodeandio_compression, it reduces the number of test cases from 112 to 44.The PR also removes the current
row_selectiontest suite.Checklist