Skip to content

Refactor parquet reader benchmarks with nvbench - #11611

Merged
rapids-bot[bot] merged 7 commits into
NVIDIA:branch-22.10from
PointKernel:refactor-parquet-reader-bench
Sep 2, 2022
Merged

rapids-bot[bot] merged 7 commits into
NVIDIA:branch-22.10from
PointKernel:refactor-parquet-reader-bench

Conversation

@PointKernel

@PointKernel PointKernel commented Aug 26, 2022 •

Copy link
Copy Markdown
Member

Description

Issue #10941

This PR refactors parquet reader benchmarks with nvbench and reduces the number of test cases by isolating data type, compression type and IO type.

It also sets min_samples in orc benchmarks to reduce runtime.

Example output of the new benchmarks:

Benchmark results ## parquet_read_decode

[0] Quadro RTX 8000

data_type cardinality run_length Samples CPU Time Noise GPU Time Noise bytes_per_second peak_memory_usage encoded_file_size
INTEGRAL 0 1 21x 724.748 ms 0.50% 724.748 ms 0.50% 740769526 1.014 GiB 506.565 MiB
INTEGRAL 1000 1 18x 252.209 ms 0.49% 252.205 ms 0.49% 2128710298 698.017 MiB 165.810 MiB
INTEGRAL 0 32 255x 58.948 ms 1.43% 58.941 ms 1.43% 9108549008 561.160 MiB 27.592 MiB
INTEGRAL 1000 32 371x 40.414 ms 0.65% 40.407 ms 0.65% 13286592857 547.897 MiB 14.368 MiB
FLOAT 0 1 19x 718.892 ms 0.49% 718.889 ms 0.49% 746806205 1.010 GiB 510.303 MiB
FLOAT 1000 1 19x 166.333 ms 0.49% 166.326 ms 0.49% 3227819573 633.646 MiB 110.206 MiB
FLOAT 0 32 12x 45.956 ms 0.49% 45.951 ms 0.49% 11683615377 547.070 MiB 23.587 MiB
FLOAT 1000 32 19x 26.427 ms 0.41% 26.420 ms 0.41% 20320912461 533.362 MiB 9.888 MiB
DECIMAL 0 1 10x 247.598 ms 0.50% 247.592 ms 0.50% 2168372563 678.171 MiB 141.643 MiB
DECIMAL 1000 1 17x 74.017 ms 0.49% 74.009 ms 0.49% 7254148321 565.465 MiB 44.818 MiB
DECIMAL 0 32 21x 23.914 ms 0.39% 23.907 ms 0.39% 22456657584 573.297 MiB 8.325 MiB
DECIMAL 1000 32 726x 20.638 ms 1.81% 20.631 ms 1.81% 26022379782 563.388 MiB 6.670 MiB
TIMESTAMP 0 1 18x 681.565 ms 0.50% 681.560 ms 0.50% 787708788 1005.327 MiB 462.140 MiB
TIMESTAMP 1000 1 19x 141.332 ms 0.49% 141.325 ms 0.49% 3798835430 614.400 MiB 92.808 MiB
TIMESTAMP 0 32 16x 43.671 ms 0.49% 43.664 ms 0.49% 12295636362 543.157 MiB 20.855 MiB
TIMESTAMP 1000 32 22x 23.758 ms 0.37% 23.751 ms 0.37% 22603868672 530.390 MiB 8.718 MiB
DURATION 0 1 14x 639.169 ms 0.48% 639.164 ms 0.48% 839958193 1.025 GiB 436.918 MiB
DURATION 1000 1 26x 141.232 ms 0.50% 141.225 ms 0.50% 3801522636 672.149 MiB 92.663 MiB
DURATION 0 32 34x 40.988 ms 0.50% 40.981 ms 0.50% 13100505608 600.078 MiB 19.551 MiB
DURATION 1000 32 22x 23.576 ms 0.48% 23.569 ms 0.48% 22778384224 588.165 MiB 8.541 MiB
STRING 0 1 14x 892.957 ms 0.49% 892.953 ms 0.49% 601230777 1.740 GiB 597.486 MiB
STRING 1000 1 11x 88.505 ms 0.49% 88.498 ms 0.49% 6066500017 1.173 GiB 46.473 MiB
STRING 0 32 14x 893.754 ms 0.50% 893.750 ms 0.50% 600694814 1.740 GiB 597.486 MiB
STRING 1000 32 15x 33.743 ms 0.36% 33.737 ms 0.35% 15913425600 1.136 GiB 8.504 MiB
LIST 0 1 8x 1.059 s 0.49% 1.059 s 0.49% 507190581 1.061 GiB 526.626 MiB
LIST 1000 1 5x 594.205 ms 0.46% 594.200 ms 0.46% 903518627 738.329 MiB 175.888 MiB
LIST 0 32 5x 332.162 ms 0.17% 332.157 ms 0.17% 1616317248 599.170 MiB 38.433 MiB
LIST 1000 32 5x 319.827 ms 0.14% 319.822 ms 0.14% 1678656424 586.061 MiB 25.114 MiB
STRUCT 0 1 17x 858.119 ms 0.49% 858.113 ms 0.49% 625640971 1.508 GiB 569.526 MiB
STRUCT 1000 1 13x 169.824 ms 0.49% 169.816 ms 0.49% 3161479058 1.018 GiB 90.699 MiB
STRUCT 0 32 14x 636.846 ms 0.49% 636.841 ms 0.49% 843022470 1.352 GiB 409.289 MiB
STRUCT 1000 32 8x 62.571 ms 0.41% 62.564 ms 0.41% 8581146955 967.512 MiB 15.400 MiB

parquet_read_io_compression

[0] Quadro RTX 8000

io compression cardinality run_length Samples CPU Time Noise GPU Time Noise bytes_per_second peak_memory_usage encoded_file_size
FILEPATH SNAPPY 0 1 5x 2.511 s 0.22% 2.511 s 0.22% 213832406 1.065 GiB 521.113 MiB
FILEPATH SNAPPY 1000 1 5x 2.013 s 0.24% 2.013 s 0.24% 266699568 741.251 MiB 170.914 MiB
FILEPATH SNAPPY 0 32 5x 1.579 s 0.38% 1.579 s 0.38% 340040086 619.892 MiB 50.836 MiB
FILEPATH SNAPPY 1000 32 5x 1.578 s 0.08% 1.578 s 0.08% 340273896 593.253 MiB 24.365 MiB
FILEPATH NONE 0 1 5x 2.365 s 0.31% 2.365 s 0.31% 227035133 1.065 GiB 529.611 MiB
FILEPATH NONE 1000 1 5x 1.949 s 0.24% 1.949 s 0.24% 275494639 741.258 MiB 180.315 MiB
FILEPATH NONE 0 32 5x 1.558 s 0.04% 1.558 s 0.04% 344639390 619.903 MiB 58.968 MiB
FILEPATH NONE 1000 32 9x 1.522 s 0.50% 1.522 s 0.50% 352751882 593.268 MiB 32.308 MiB
HOST_BUFFER SNAPPY 0 1 5x 2.493 s 0.12% 2.493 s 0.12% 215335507 1.065 GiB 521.113 MiB
HOST_BUFFER SNAPPY 1000 1 5x 2.024 s 0.17% 2.024 s 0.17% 265230150 741.251 MiB 170.914 MiB
HOST_BUFFER SNAPPY 0 32 5x 1.588 s 0.38% 1.588 s 0.38% 338124854 619.891 MiB 50.835 MiB
HOST_BUFFER SNAPPY 1000 32 5x 1.590 s 0.12% 1.590 s 0.12% 337724979 593.253 MiB 24.365 MiB
HOST_BUFFER NONE 0 1 5x 2.361 s 0.14% 2.361 s 0.14% 227387701 1.065 GiB 529.611 MiB
HOST_BUFFER NONE 1000 1 5x 1.957 s 0.30% 1.957 s 0.30% 274280188 741.258 MiB 180.315 MiB
HOST_BUFFER NONE 0 32 5x 1.566 s 0.34% 1.566 s 0.34% 342852317 619.903 MiB 58.968 MiB
HOST_BUFFER NONE 1000 32 5x 1.532 s 0.35% 1.532 s 0.35% 350454541 593.268 MiB 32.308 MiB

parquet_read_column_selection

[0] Quadro RTX 8000

column_selection row_selection str_to_categories uses_pandas_metadata timestamp_type Samples CPU Time Noise GPU Time Noise bytes_per_second peak_memory_usage encoded_file_size
ALL ALL YES YES EMPTY 5x 2.131 s 0.18% 2.131 s 0.18% 251957606 688.633 MiB 122.689 MiB
ALTERNATE ALL YES YES EMPTY 5x 2.052 s 0.04% 2.052 s 0.04% 130843237 344.275 MiB 122.661 MiB
FIRST_HALF ALL YES YES EMPTY 5x 2.041 s 0.04% 2.041 s 0.04% 131522620 344.259 MiB 122.656 MiB
SECOND_HALF ALL YES YES EMPTY 5x 2.039 s 0.03% 2.039 s 0.03% 131633269 344.375 MiB 122.644 MiB

parquet_read_misc_options

[0] Quadro RTX 8000

column_selection row_selection str_to_categories uses_pandas_metadata timestamp_type Samples CPU Time Noise GPU Time Noise bytes_per_second peak_memory_usage encoded_file_size
ALL ALL YES YES EMPTY 5x 2.131 s 0.24% 2.131 s 0.24% 251911310 688.633 MiB 122.654 MiB
ALL ALL YES NO EMPTY 5x 2.131 s 0.13% 2.131 s 0.13% 251962422 688.633 MiB 122.655 MiB
ALL ALL NO YES EMPTY 5x 2.134 s 0.16% 2.134 s 0.16% 251594099 703.482 MiB 122.653 MiB
ALL ALL NO NO EMPTY 5x 2.133 s 0.26% 2.133 s 0.26% 251645745 703.482 MiB 122.639 MiB

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@PointKernel PointKernel added 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. CMake CMake build issue cuIO cuIO issue tech debt improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Aug 26, 2022
@PointKernel PointKernel self-assigned this Aug 26, 2022
@codecov

codecov Bot commented Aug 26, 2022 •

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.10@03f3543). Click here to learn what that means.
Patch has no changes to coverable lines.

❗ Current head 3629699 differs from pull request most recent head 58bb031. Consider uploading reports for the commit 58bb031 to get more accurate results

Additional details and impacted files
@@               Coverage Diff               @@
##             branch-22.10   #11611   +/-   ##
===============================================
  Coverage                ?   86.42%           
===============================================
  Files                   ?      145           
  Lines                   ?    22998           
  Branches                ?        0           
===============================================
  Hits                    ?    19875           
  Misses                  ?     3123           
  Partials                ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@PointKernel
PointKernel marked this pull request as ready for review August 29, 2022 22:35
@PointKernel
PointKernel requested a review from a team as a code owner August 29, 2022 22:35
@PointKernel PointKernel added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Aug 31, 2022
@PointKernel
PointKernel requested a review from vuule September 1, 2022 14:29

@hyperbolic2346 hyperbolic2346 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for doing these benchmark changes. This will help us for sure. Some questions, but happy with the changes.

@vuule vuule left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just an ask to fix a bad change from another PR :)

@vuule vuule left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking care of this, looks great!

@PointKernel

Copy link
Copy Markdown
Member Author

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit a2783ec into NVIDIA:branch-22.10 Sep 2, 2022
@PointKernel
PointKernel deleted the refactor-parquet-reader-bench branch November 16, 2022 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team CMake CMake build issue cuIO cuIO issue improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants