sijie commented on issue #151: DL-45: DL should allow ByteBuf based API to 
avoid copying bytes array
URL: https://github.com/apache/distributedlog/pull/151#issuecomment-326204323
 
 
   FYI. the new compression codec shows much better result.
   
   this patch:
   
   ```
   Benchmark                                                                 
(size)   Mode  Cnt      Score      Error   Units
   CompressionBenchmark.testCompressLZ4                                         
 10  thrpt   50   6382.946 ?  252.338  ops/ms
   CompressionBenchmark.testCompressLZ4                                         
100  thrpt   50    560.667 ?   15.716  ops/ms
   CompressionBenchmark.testCompressLZ4                                        
1000  thrpt   50    198.630 ?    4.767  ops/ms
   CompressionBenchmark.testCompressLZ4                                       
10000  thrpt   50     61.814 ?    1.543  ops/ms
   CompressionBenchmark.testCompressNone                                        
 10  thrpt   50  48918.275 ?  688.621  ops/ms
   CompressionBenchmark.testCompressNone                                        
100  thrpt   50  47937.500 ? 3246.851  ops/ms
   CompressionBenchmark.testCompressNone                                       
1000  thrpt   50  49029.124 ?  982.252  ops/ms
   CompressionBenchmark.testCompressNone                                      
10000  thrpt   50  50717.187 ? 1143.477  ops/ms
   CompressionBenchmark.testDecompressLZ4                                       
 10  thrpt   50   7191.179 ?  196.163  ops/ms
   CompressionBenchmark.testDecompressLZ4                                       
100  thrpt   50   4435.242 ?   89.038  ops/ms
   CompressionBenchmark.testDecompressLZ4                                      
1000  thrpt   50    994.583 ?   22.731  ops/ms
   CompressionBenchmark.testDecompressLZ4                                     
10000  thrpt   50    112.235 ?    1.937  ops/ms
   CompressionBenchmark.testDecompressNone                                      
 10  thrpt   50  36554.827 ?  571.760  ops/ms
   CompressionBenchmark.testDecompressNone                                      
100  thrpt   50  37407.131 ?  711.580  ops/ms
   CompressionBenchmark.testDecompressNone                                     
1000  thrpt   50  37218.008 ?  910.462  ops/ms
   CompressionBenchmark.testDecompressNone                                    
10000  thrpt   50  40611.669 ?  509.468  ops/ms
   ```
   
   0.4.0-incubating
   
   ```
   CompressionBenchmark.testCompressLZ4                                         
 10  thrpt   50    2422.408 ?   44.161  ops/ms
   CompressionBenchmark.testCompressLZ4                                         
100  thrpt   50    1793.394 ?   27.825  ops/ms
   CompressionBenchmark.testCompressLZ4                                        
1000  thrpt   50     928.596 ?   14.488  ops/ms
   CompressionBenchmark.testCompressLZ4                                       
10000  thrpt   50     239.443 ?    4.752  ops/ms
   CompressionBenchmark.testCompressNone                                        
 10  thrpt   50  207570.657 ? 4656.234  ops/ms
   CompressionBenchmark.testCompressNone                                        
100  thrpt   50   90762.739 ? 1753.916  ops/ms
   CompressionBenchmark.testCompressNone                                       
1000  thrpt   50   10532.599 ?  207.739  ops/ms
   CompressionBenchmark.testCompressNone                                      
10000  thrpt   50    1034.792 ?   20.067  ops/ms
   CompressionBenchmark.testDecompressLZ4                                       
 10  thrpt   50    4265.879 ?   80.825  ops/ms
   CompressionBenchmark.testDecompressLZ4                                       
100  thrpt   50    3975.214 ?  130.441  ops/ms
   CompressionBenchmark.testDecompressLZ4                                      
1000  thrpt   50    1821.820 ?   37.923  ops/ms
   CompressionBenchmark.testDecompressLZ4                                     
10000  thrpt   50     298.692 ?    8.591  ops/ms
   CompressionBenchmark.testDecompressNone                                      
 10  thrpt   50  202194.272 ? 4431.166  ops/ms
   CompressionBenchmark.testDecompressNone                                      
100  thrpt   50   80907.829 ? 3869.202  ops/ms
   CompressionBenchmark.testDecompressNone                                     
1000  thrpt   50   10041.016 ?  391.215  ops/ms
   CompressionBenchmark.testDecompressNone                                    
10000  thrpt   50    1016.756 ?   26.645  ops/ms
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to