housepower / ClickHouse-Native-JDBC

ClickHouse Native Protocol JDBC implementation
https://housepower.github.io/ClickHouse-Native-JDBC/
Apache License 2.0
527 stars 145 forks source link

Extract rw compress to ClickHouseDefines #388

Closed pan3793 closed 2 years ago

codecov[bot] commented 2 years ago

Codecov Report

Merging #388 (47f6b65) into master (7a275c9) will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #388      +/-   ##
============================================
+ Coverage     62.40%   62.41%   +0.01%     
  Complexity     1249     1249              
============================================
  Files           135      135              
  Lines          6636     6638       +2     
  Branches        516      516              
============================================
+ Hits           4141     4143       +2     
  Misses         2219     2219              
  Partials        276      276              
Impacted Files Coverage Δ
...ava/com/github/housepower/client/NativeClient.java 73.33% <ø> (ø)
.../github/housepower/settings/ClickHouseDefines.java 87.50% <100.00%> (+4.16%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7a275c9...47f6b65. Read the comment docs.

pan3793 commented 2 years ago

workaround for enable/disable compress, cc @zhicwu

github-actions[bot] commented 2 years ago
BENCHMARK_REPORT ``` Benchmark (batchSize) (columnNum) (selectNumber) Mode Cnt Score Error Units InsertIBenchmark.benchInsertHttp 200000 20 N/A avgt 444.497 ms/op InsertIBenchmark.benchInsertHttp 200000 50 N/A avgt 413.849 ms/op InsertIBenchmark.benchInsertHttp 500000 20 N/A avgt 1052.709 ms/op InsertIBenchmark.benchInsertHttp 500000 50 N/A avgt 1048.284 ms/op InsertIBenchmark.benchInsertNative 200000 20 N/A avgt 134.034 ms/op InsertIBenchmark.benchInsertNative 200000 50 N/A avgt 134.465 ms/op InsertIBenchmark.benchInsertNative 500000 20 N/A avgt 307.610 ms/op InsertIBenchmark.benchInsertNative 500000 50 N/A avgt 311.189 ms/op RowBinaryDoubleIBenchmark.benchInsertHttpRowBinary 200000 20 N/A avgt 341.117 ms/op RowBinaryDoubleIBenchmark.benchInsertHttpRowBinary 200000 50 N/A avgt 892.132 ms/op RowBinaryDoubleIBenchmark.benchInsertHttpRowBinary 500000 20 N/A avgt 873.321 ms/op RowBinaryDoubleIBenchmark.benchInsertHttpRowBinary 500000 50 N/A avgt 2887.183 ms/op RowBinaryDoubleIBenchmark.benchInsertNative 200000 20 N/A avgt 497.315 ms/op RowBinaryDoubleIBenchmark.benchInsertNative 200000 50 N/A avgt 1353.697 ms/op RowBinaryDoubleIBenchmark.benchInsertNative 500000 20 N/A avgt 1197.349 ms/op RowBinaryDoubleIBenchmark.benchInsertNative 500000 50 N/A avgt 3246.654 ms/op RowBinaryIntIBenchmark.benchInsertHttpRowBinary 200000 20 N/A avgt 185.977 ms/op RowBinaryIntIBenchmark.benchInsertHttpRowBinary 200000 50 N/A avgt 437.564 ms/op RowBinaryIntIBenchmark.benchInsertHttpRowBinary 500000 20 N/A avgt 268.924 ms/op RowBinaryIntIBenchmark.benchInsertHttpRowBinary 500000 50 N/A avgt 1199.593 ms/op RowBinaryIntIBenchmark.benchInsertNative 200000 20 N/A avgt 423.899 ms/op RowBinaryIntIBenchmark.benchInsertNative 200000 50 N/A avgt 1125.752 ms/op RowBinaryIntIBenchmark.benchInsertNative 500000 20 N/A avgt 1025.808 ms/op RowBinaryIntIBenchmark.benchInsertNative 500000 50 N/A avgt 2759.591 ms/op RowBinaryStringIBenchmark.benchInsertHttpRowBinary 200000 20 N/A avgt 522.123 ms/op RowBinaryStringIBenchmark.benchInsertHttpRowBinary 200000 50 N/A avgt 1354.277 ms/op RowBinaryStringIBenchmark.benchInsertHttpRowBinary 500000 20 N/A avgt 1233.900 ms/op RowBinaryStringIBenchmark.benchInsertHttpRowBinary 500000 50 N/A avgt 3145.991 ms/op RowBinaryStringIBenchmark.benchInsertNative 200000 20 N/A avgt 770.066 ms/op RowBinaryStringIBenchmark.benchInsertNative 200000 50 N/A avgt 2115.557 ms/op RowBinaryStringIBenchmark.benchInsertNative 500000 20 N/A avgt 1906.141 ms/op RowBinaryStringIBenchmark.benchInsertNative 500000 50 N/A avgt 4871.454 ms/op SelectIBenchmark.benchSelectHTTP N/A N/A 500000 avgt 1939.100 ms/op SelectIBenchmark.benchSelectHTTP N/A N/A 10000000 avgt 33934.891 ms/op SelectIBenchmark.benchSelectNative N/A N/A 500000 avgt 372.758 ms/op SelectIBenchmark.benchSelectNative N/A N/A 10000000 avgt 6823.427 ms/op WideColumnDoubleInsertIBenchmark.benchInsertHttp 200000 20 N/A avgt 949.601 ms/op WideColumnDoubleInsertIBenchmark.benchInsertHttp 200000 50 N/A avgt 2507.522 ms/op WideColumnDoubleInsertIBenchmark.benchInsertHttp 500000 20 N/A avgt 2413.607 ms/op WideColumnDoubleInsertIBenchmark.benchInsertHttp 500000 50 N/A avgt 6377.833 ms/op WideColumnDoubleInsertIBenchmark.benchInsertNative 200000 20 N/A avgt 487.898 ms/op WideColumnDoubleInsertIBenchmark.benchInsertNative 200000 50 N/A avgt 1349.446 ms/op WideColumnDoubleInsertIBenchmark.benchInsertNative 500000 20 N/A avgt 1228.227 ms/op WideColumnDoubleInsertIBenchmark.benchInsertNative 500000 50 N/A avgt 3428.755 ms/op WideColumnIntInsertIBenchmark.benchInsertHttp 200000 20 N/A avgt 494.345 ms/op WideColumnIntInsertIBenchmark.benchInsertHttp 200000 50 N/A avgt 1210.939 ms/op WideColumnIntInsertIBenchmark.benchInsertHttp 500000 20 N/A avgt 1267.142 ms/op WideColumnIntInsertIBenchmark.benchInsertHttp 500000 50 N/A avgt 3012.032 ms/op WideColumnIntInsertIBenchmark.benchInsertNative 200000 20 N/A avgt 425.045 ms/op WideColumnIntInsertIBenchmark.benchInsertNative 200000 50 N/A avgt 1083.036 ms/op WideColumnIntInsertIBenchmark.benchInsertNative 500000 20 N/A avgt 1039.263 ms/op WideColumnIntInsertIBenchmark.benchInsertNative 500000 50 N/A avgt 2747.422 ms/op WideColumnStringInsertIBenchmark.benchInsertHttp 200000 20 N/A avgt 741.307 ms/op WideColumnStringInsertIBenchmark.benchInsertHttp 200000 50 N/A avgt 1803.302 ms/op WideColumnStringInsertIBenchmark.benchInsertHttp 500000 20 N/A avgt 1886.108 ms/op WideColumnStringInsertIBenchmark.benchInsertHttp 500000 50 N/A avgt 4582.413 ms/op WideColumnStringInsertIBenchmark.benchInsertNative 200000 20 N/A avgt 805.692 ms/op WideColumnStringInsertIBenchmark.benchInsertNative 200000 50 N/A avgt 2170.026 ms/op WideColumnStringInsertIBenchmark.benchInsertNative 500000 20 N/A avgt 2096.562 ms/op WideColumnStringInsertIBenchmark.benchInsertNative 500000 50 N/A avgt 5597.831 ms/op ```
github-actions[bot] commented 2 years ago
BENCHMARK_REPORT ``` Benchmark (batchSize) (columnNum) (selectNumber) Mode Cnt Score Error Units InsertIBenchmark.benchInsertHttp 200000 20 N/A avgt 338.331 ms/op InsertIBenchmark.benchInsertHttp 200000 50 N/A avgt 330.245 ms/op InsertIBenchmark.benchInsertHttp 500000 20 N/A avgt 882.659 ms/op InsertIBenchmark.benchInsertHttp 500000 50 N/A avgt 865.723 ms/op InsertIBenchmark.benchInsertNative 200000 20 N/A avgt 106.471 ms/op InsertIBenchmark.benchInsertNative 200000 50 N/A avgt 105.502 ms/op InsertIBenchmark.benchInsertNative 500000 20 N/A avgt 239.948 ms/op InsertIBenchmark.benchInsertNative 500000 50 N/A avgt 245.379 ms/op RowBinaryDoubleIBenchmark.benchInsertHttpRowBinary 200000 20 N/A avgt 170.341 ms/op RowBinaryDoubleIBenchmark.benchInsertHttpRowBinary 200000 50 N/A avgt 655.701 ms/op RowBinaryDoubleIBenchmark.benchInsertHttpRowBinary 500000 20 N/A avgt 641.460 ms/op RowBinaryDoubleIBenchmark.benchInsertHttpRowBinary 500000 50 N/A avgt 2156.997 ms/op RowBinaryDoubleIBenchmark.benchInsertNative 200000 20 N/A avgt 462.219 ms/op RowBinaryDoubleIBenchmark.benchInsertNative 200000 50 N/A avgt 1053.099 ms/op RowBinaryDoubleIBenchmark.benchInsertNative 500000 20 N/A avgt 984.614 ms/op RowBinaryDoubleIBenchmark.benchInsertNative 500000 50 N/A avgt 2585.734 ms/op RowBinaryIntIBenchmark.benchInsertHttpRowBinary 200000 20 N/A avgt 154.982 ms/op RowBinaryIntIBenchmark.benchInsertHttpRowBinary 200000 50 N/A avgt 370.958 ms/op RowBinaryIntIBenchmark.benchInsertHttpRowBinary 500000 20 N/A avgt 239.412 ms/op RowBinaryIntIBenchmark.benchInsertHttpRowBinary 500000 50 N/A avgt 919.332 ms/op RowBinaryIntIBenchmark.benchInsertNative 200000 20 N/A avgt 344.545 ms/op RowBinaryIntIBenchmark.benchInsertNative 200000 50 N/A avgt 859.266 ms/op RowBinaryIntIBenchmark.benchInsertNative 500000 20 N/A avgt 845.759 ms/op RowBinaryIntIBenchmark.benchInsertNative 500000 50 N/A avgt 2164.802 ms/op RowBinaryStringIBenchmark.benchInsertHttpRowBinary 200000 20 N/A avgt 436.412 ms/op RowBinaryStringIBenchmark.benchInsertHttpRowBinary 200000 50 N/A avgt 1072.764 ms/op RowBinaryStringIBenchmark.benchInsertHttpRowBinary 500000 20 N/A avgt 1040.466 ms/op RowBinaryStringIBenchmark.benchInsertHttpRowBinary 500000 50 N/A avgt 2763.216 ms/op RowBinaryStringIBenchmark.benchInsertNative 200000 20 N/A avgt 664.496 ms/op RowBinaryStringIBenchmark.benchInsertNative 200000 50 N/A avgt 1682.512 ms/op RowBinaryStringIBenchmark.benchInsertNative 500000 20 N/A avgt 1626.398 ms/op RowBinaryStringIBenchmark.benchInsertNative 500000 50 N/A avgt 4037.746 ms/op SelectIBenchmark.benchSelectHTTP N/A N/A 500000 avgt 1539.459 ms/op SelectIBenchmark.benchSelectHTTP N/A N/A 10000000 avgt 27058.479 ms/op SelectIBenchmark.benchSelectNative N/A N/A 500000 avgt 309.349 ms/op SelectIBenchmark.benchSelectNative N/A N/A 10000000 avgt 5680.380 ms/op WideColumnDoubleInsertIBenchmark.benchInsertHttp 200000 20 N/A avgt 751.699 ms/op WideColumnDoubleInsertIBenchmark.benchInsertHttp 200000 50 N/A avgt 2008.970 ms/op WideColumnDoubleInsertIBenchmark.benchInsertHttp 500000 20 N/A avgt 1876.677 ms/op WideColumnDoubleInsertIBenchmark.benchInsertHttp 500000 50 N/A avgt 5035.034 ms/op WideColumnDoubleInsertIBenchmark.benchInsertNative 200000 20 N/A avgt 407.951 ms/op WideColumnDoubleInsertIBenchmark.benchInsertNative 200000 50 N/A avgt 1046.398 ms/op WideColumnDoubleInsertIBenchmark.benchInsertNative 500000 20 N/A avgt 1020.173 ms/op WideColumnDoubleInsertIBenchmark.benchInsertNative 500000 50 N/A avgt 2699.230 ms/op WideColumnIntInsertIBenchmark.benchInsertHttp 200000 20 N/A avgt 409.440 ms/op WideColumnIntInsertIBenchmark.benchInsertHttp 200000 50 N/A avgt 945.528 ms/op WideColumnIntInsertIBenchmark.benchInsertHttp 500000 20 N/A avgt 1016.835 ms/op WideColumnIntInsertIBenchmark.benchInsertHttp 500000 50 N/A avgt 2425.908 ms/op WideColumnIntInsertIBenchmark.benchInsertNative 200000 20 N/A avgt 339.649 ms/op WideColumnIntInsertIBenchmark.benchInsertNative 200000 50 N/A avgt 861.040 ms/op WideColumnIntInsertIBenchmark.benchInsertNative 500000 20 N/A avgt 851.434 ms/op WideColumnIntInsertIBenchmark.benchInsertNative 500000 50 N/A avgt 2119.043 ms/op WideColumnStringInsertIBenchmark.benchInsertHttp 200000 20 N/A avgt 586.092 ms/op WideColumnStringInsertIBenchmark.benchInsertHttp 200000 50 N/A avgt 1401.361 ms/op WideColumnStringInsertIBenchmark.benchInsertHttp 500000 20 N/A avgt 1455.920 ms/op WideColumnStringInsertIBenchmark.benchInsertHttp 500000 50 N/A avgt 3544.153 ms/op WideColumnStringInsertIBenchmark.benchInsertNative 200000 20 N/A avgt 634.438 ms/op WideColumnStringInsertIBenchmark.benchInsertNative 200000 50 N/A avgt 1613.591 ms/op WideColumnStringInsertIBenchmark.benchInsertNative 500000 20 N/A avgt 1623.058 ms/op WideColumnStringInsertIBenchmark.benchInsertNative 500000 50 N/A avgt 4175.472 ms/op ```