Skip to content

Commit

Permalink
GH-38452: [C++][Benchmark] Adding benchmark for LZ4/Snappy Compression (
Browse files Browse the repository at this point in the history
#38453)

### Rationale for this change

This patch add LZ4 (LZ4_RAW in Parquet standard) and Snappy compression/decompression benchmark.

### What changes are included in this PR?

Add groups of benchmarks.

### Are these changes tested?

no

### Are there any user-facing changes?

no

* Closes: #38452

Authored-by: mwish <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
  • Loading branch information
mapleFU authored Oct 25, 2023
1 parent 25e5d19 commit 73589dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cpp/src/arrow/util/compression_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,14 @@ BENCHMARK_TEMPLATE(ReferenceStreamingCompression, Compression::LZ4_FRAME);
BENCHMARK_TEMPLATE(ReferenceCompression, Compression::LZ4_FRAME);
BENCHMARK_TEMPLATE(ReferenceStreamingDecompression, Compression::LZ4_FRAME);
BENCHMARK_TEMPLATE(ReferenceDecompression, Compression::LZ4_FRAME);

BENCHMARK_TEMPLATE(ReferenceCompression, Compression::LZ4);
BENCHMARK_TEMPLATE(ReferenceDecompression, Compression::LZ4);
#endif

#ifdef ARROW_WITH_SNAPPY
BENCHMARK_TEMPLATE(ReferenceCompression, Compression::SNAPPY);
BENCHMARK_TEMPLATE(ReferenceDecompression, Compression::SNAPPY);
#endif

#endif
Expand Down

0 comments on commit 73589dd

Please sign in to comment.