acelyc111 commented on PR #1601:
URL:
https://github.com/apache/incubator-pegasus/pull/1601#issuecomment-1717730600
@Smityz This is the difference between without and with this patch on my
develop enviroment by command:
```
./run.sh bench --num 1000000 --thread_num 10
```
There is a little performance jitter and difference is very small.
```diff --git a/without_the_patch b/with_the_patch
index 8051992..e4c4b1e 100644
--- a/without_the_patch
+++ b/with_the_patch
@@ -6,70 +6,61 @@ Values: 100 bytes each
Entries: 1000000
FileSize: 125 MB (estimated)
------------------------------------------------
+... finished 600000 ops
Statistics for write: s
-99.4594 micros/op; 10054 ops/sec; 1.26484 MB/s
-Count: 10000000 Average: 994.1274 StdDev: 199.47
-Min: 174 Median: 945.7259 Max: 126498
-Percentiles: P50: 945.73 P75: 1222.66 P99: 2669.13 P99.9: 3639.62 P99.99:
5469.16
+108.9833871 micros/op; 9175 ops/sec; 1.1543043701199116 MB/s
+Count: 10000000 Average: 1089.5418 StdDev: 392.73
+Min: 251 Median: 1041.3644 Max: 32637
+Percentiles: P50: 1041.36 P75: 1274.21 P99: 2715.24 P99.9: 3598.94 P99.99:
4340.74
------------------------------------------------------
-( 170, 250 ] 1531 0.015% 0.015%
-( 250, 380 ] 226601 2.266% 2.281%
-( 380, 580 ] 1045861 10.459% 12.740% ##
-( 580, 870 ] 3042394 30.424% 43.164% ######
-( 870, 1300 ] 3881810 38.818% 81.982% ########
-( 1300, 1900 ] 1429626 14.296% 96.278% ###
-( 1900, 2900 ] 353878 3.539% 99.817% #
-( 2900, 4400 ] 16831 0.168% 99.985%
-( 4400, 6600 ] 963 0.010% 99.995%
-( 6600, 9900 ] 238 0.002% 99.997%
-( 9900, 14000 ] 92 0.001% 99.998%
-( 14000, 22000 ] 89 0.001% 99.999%
-( 22000, 33000 ] 8 0.000% 99.999%
-( 33000, 50000 ] 38 0.000% 100.000%
-( 50000, 75000 ] 10 0.000% 100.000%
-( 75000, 110000 ] 14 0.000% 100.000%
-( 110000, 170000 ] 16 0.000% 100.000%
-
-... finished 100000 ops
+( 250, 380 ] 2149 0.021% 0.021%
+( 380, 580 ] 255741 2.557% 2.579% #
+( 580, 870 ] 2902205 29.022% 31.601% ######
+( 870, 1300 ] 4616823 46.168% 77.769% #########
+( 1300, 1900 ] 1763391 17.634% 95.403% ####
+( 1900, 2900 ] 441211 4.412% 99.815% #
+( 2900, 4400 ] 18199 0.182% 99.997%
+( 4400, 6600 ] 132 0.001% 99.999%
+( 6600, 9900 ] 99 0.001% 100.000%
+( 9900, 14000 ] 40 0.000% 100.000%
+( 22000, 33000 ] 10 0.000% 100.000%
Statistics for read: ps
-32.2676 micros/op; 30990 ops/sec; 3.89864 MB/s (1000000 of 1000000 found)
(1000000 of 1000000 found) (1000000 of 1000000 found) (1000000 of 1000000
found) (1000000 of 1000000 found) (1000000 of 1000000 found) (1000000 of
1000000 found) (1000000 of 1000000 found) (1000000 of 1000000 found) (1000000
of 1000000 found)
-Count: 10000000 Average: 322.4329 StdDev: 65.09
-Min: 138 Median: 320.3888 Max: 11846
-Percentiles: P50: 320.39 P75: 365.43 P99: 569.86 P99.9: 683.49 P99.99:
904.18
+32.24271819999999 micros/op; 31014 ops/sec; 3.90165615751342 MB/s (1000000
of 1000000 found) (1000000 of 1000000 found) (1000000 of 1000000 found)
(1000000 of 1000000 found) (1000000 of 1000000 found) (1000000 of 1000000
found) (1000000 of 1000000 found) (1000000 of 1000000 found) (1000000 of
1000000 found) (1000000 of 1000000 found)
+Count: 10000000 Average: 322.2425 StdDev: 67.90
+Min: 112 Median: 319.7637 Max: 8046
+Percentiles: P50: 319.76 P75: 366.80 P99: 570.87 P99.9: 721.83 P99.99:
867.51
------------------------------------------------------
-( 110, 170 ] 1594 0.016% 0.016%
-( 170, 250 ] 1091829 10.918% 10.934% ##
-( 250, 380 ] 7214994 72.150% 83.084% ##############
-( 380, 580 ] 1676621 16.766% 99.850% ###
-( 580, 870 ] 13905 0.139% 99.989%
-( 870, 1300 ] 717 0.007% 99.997%
-( 1300, 1900 ] 233 0.002% 99.999%
-( 1900, 2900 ] 71 0.001% 100.000%
-( 2900, 4400 ] 17 0.000% 100.000%
-( 4400, 6600 ] 9 0.000% 100.000%
-( 9900, 14000 ] 10 0.000% 100.000%
+( 110, 170 ] 7719 0.077% 0.077%
+( 170, 250 ] 1284654 12.847% 12.924% ###
+( 250, 380 ] 6908917 69.089% 82.013% ##############
+( 380, 580 ] 1779948 17.799% 99.812% ####
+( 580, 870 ] 17916 0.179% 99.992%
+( 870, 1300 ] 580 0.006% 99.997%
+( 1300, 1900 ] 201 0.002% 99.999%
+( 1900, 2900 ] 27 0.000% 100.000%
+( 2900, 4400 ] 24 0.000% 100.000%
+( 4400, 6600 ] 7 0.000% 100.000%
+( 6600, 9900 ] 7 0.000% 100.000%
Statistics for delete:
-105.911 micros/op; 9441 ops/sec;
-Count: 10000000 Average: 1058.6017 StdDev: 395.14
-Min: 200 Median: 1011.2655 Max: 82980
-Percentiles: P50: 1011.27 P75: 1251.98 P99: 2671.67 P99.9: 3333.50 P99.99:
4323.24
+106.3613042 micros/op; 9401 ops/sec;
+Count: 10000000 Average: 1063.1975 StdDev: 386.62
+Min: 249 Median: 1014.1278 Max: 41105
+Percentiles: P50: 1014.13 P75: 1255.56 P99: 2685.36 P99.9: 3430.81 P99.99:
4327.29
------------------------------------------------------
-( 170, 250 ] 20 0.000% 0.000%
-( 250, 380 ] 4195 0.042% 0.042%
-( 380, 580 ] 302957 3.030% 3.072% #
-( 580, 870 ] 3225707 32.257% 35.329% ######
-( 870, 1300 ] 4465790 44.658% 79.987% #########
-( 1300, 1900 ] 1610485 16.105% 96.092% ###
-( 1900, 2900 ] 376904 3.769% 99.861% #
-( 2900, 4400 ] 13640 0.136% 99.997%
-( 4400, 6600 ] 151 0.002% 99.998%
-( 6600, 9900 ] 90 0.001% 99.999%
-( 9900, 14000 ] 21 0.000% 100.000%
-( 14000, 22000 ] 2 0.000% 100.000%
-( 22000, 33000 ] 18 0.000% 100.000%
-( 50000, 75000 ] 10 0.000% 100.000%
-( 75000, 110000 ] 10 0.000% 100.000%
+( 170, 250 ] 1 0.000% 0.000%
+( 250, 380 ] 1987 0.020% 0.020%
+( 380, 580 ] 295886 2.959% 2.979% #
+( 580, 870 ] 3209727 32.097% 35.076% ######
+( 870, 1300 ] 4452518 44.525% 79.601% #########
+( 1300, 1900 ] 1630076 16.301% 95.902% ###
+( 1900, 2900 ] 394476 3.945% 99.847% #
+( 2900, 4400 ] 15059 0.151% 99.997%
+( 4400, 6600 ] 122 0.001% 99.999%
+( 6600, 9900 ] 77 0.001% 99.999%
+( 9900, 14000 ] 41 0.000% 100.000%
+( 14000, 22000 ] 20 0.000% 100.000%
+( 33000, 50000 ] 10 0.000% 100.000%
dsn exit with code 0
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]