Commits


Yibo Cai authored and David Li committed e2c22a11901
ARROW-12187: [C++][FlightRPC] Add compression benchmark for stream writing Original uncompressed payload size is used in throughput calculation, not the compressed size. So the result can be compared directly with non-compression benchmark to see if compression helps performance. **NOTE:** Flight benchmark uses random data for payload, it's hard to be compressed. Actually the compressed size (zstd, lz4) is larger than original size. So the benchmark result reflects the worse case how compression can influence performance. Example test result: - No compression $ arrow-flight-benchmark -num_streams 1 -num_threads 1 -test_put *Speed: 2941.53 MB/s* *Latency: 40 us* - ZSTD with default compression level $ arrow-flight-benchmark -num_streams 1 -num_threads 1 -test_put -compression zstd *Speed: 1205.66 MB/s* *Latency: 101 us* - ZSTD with high compression level $ arrow-flight-benchmark -num_streams 1 -num_threads 1 -test_put -compression zstd:19 *Speed: 47.6882 MB/s* *Latency: 2618 us* Closes #9902 from cyb70289/flight-bench-compress Authored-by: Yibo Cai <yibo.cai@arm.com> Signed-off-by: David Li <li.davidm96@gmail.com>