mapleFU commented on PR #39807:
URL: https://github.com/apache/arrow/pull/39807#issuecomment-1927580153

   Before optimize:
   
   ```
   
CompressionInputZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:8192   
         16717 ns        16318 ns        43287 bytes_per_second=73.5798M/s
   
CompressionInputZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:65536  
         96598 ns        94595 ns         6962 bytes_per_second=97.6409M/s
   
CompressionInputZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:1048576
       1592301 ns      1589814 ns          440 bytes_per_second=90.8238M/s
   
CompressionInputNonZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:8192
         19860 ns        19794 ns        36185 bytes_per_second=60.6601M/s
   
CompressionInputNonZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:65536
       103077 ns       101591 ns         7024 bytes_per_second=90.9171M/s
   
CompressionInputNonZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:1048576
    1680448 ns      1636030 ns          428 bytes_per_second=88.2581M/s
   ```
   
   After:
   
   ```
   
CompressionInputZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:8192   
         18100 ns        17072 ns        40079 bytes_per_second=70.3304M/s
   
CompressionInputZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:65536  
         95859 ns        93712 ns         7438 bytes_per_second=98.5613M/s
   
CompressionInputZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:1048576
       1629148 ns      1608965 ns          428 bytes_per_second=89.7428M/s
   
CompressionInputNonZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:8192
         20614 ns        20083 ns        33628 bytes_per_second=59.7863M/s
   
CompressionInputNonZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:65536
       100852 ns        98297 ns         6913 bytes_per_second=93.9637M/s
   
CompressionInputNonZeroCopyBenchmark<::arrow::Compression::GZIP>/InputBytes:1048576
    1615719 ns      1608626 ns          433 bytes_per_second=89.7617M/s
   ```
   
   Seems it even be slower in some cases, I'll try on it later


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to