Skip to content

Conversation

@Userwhite
Copy link
Contributor

@Userwhite Userwhite commented Jul 12, 2025

What problem does this PR solve?

Issue Number: close #53139

Problem Summary:

Release note

use stream load async return to optimize the performance under high concurrency, we treat send_reply as callback of exec_plan_framgnet .

    1. because pipeline may invoke callback two times(when prepare pipeline failed) , so we add lock at exec_fragment of be/src/runtime/stream_load/stream_load_executor.cpp, and use is_prepare_success to ensure no dead lock.
    1. ctx-> _finish_send_reply ensure send_reply only be invoke one time. becuase we can't decide if callback will send_reply again when load fail.
    1. ctx-> _can_send_reply ensure send_reply only when on_header fail or handle finished, or sender will receive broken-pipe when meet data-quality error

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

曹俊辉 added 3 commits July 12, 2025 12:04
…e better http performance

* fix some bug for partition

* fix for thrift

* fix the thrift exit bug

* Revert "[feat](http): use async reply to provide better http performance

* ensure free order

* [Fix](stream-load) Fix stream load stuck under high concurrency (apache#36772)

When the concurrency of streamload exceeds the number of threads in the
remote scanner, streamload may get stuck. The reason is that the
libevent thread blocks and waits for streamload to complete, and when
there is no intersection between the tasks handled by the scanner thread
and the libevent thread, it gets stuck.
The solution is to convert the synchronous waiting tasks of libevent
into asynchronous execution by using callbacks in the streamload
executor thread.

See merge request: !740"
Revert commit d9e74efa762c8161a5ca3df4290bbd0ab896f1ef

See merge request: !745"
Revert commit 396cb2ec7e0b1a21bc0d7424c627f0d9321884bc
* fix missing ;


* fix stream load block


See merge request: !855
@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

}

int StreamLoadAction::on_header(HttpRequest* req) {
req->mark_send_reply();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这么改完之后 所有的请求都走async了?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

只有 StreamLoad 请求,另外只是提交 reply 是 async 的,客户端感知仍然是同步的。

}

private:
SendReplyType _send_reply_type = REPLY_SYNC;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个初始值是不是没啥用 因为 on_header 把它改写了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还有其他 HttpAction 会用到,他们需要默认是 SYNC 的。

gavinchou
gavinchou previously approved these changes Jul 14, 2025
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 14, 2025
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@dataroaring
Copy link
Contributor

run buildall

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Jul 14, 2025
gavinchou
gavinchou previously approved these changes Jul 14, 2025
@Userwhite
Copy link
Contributor Author

run buildall

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 14, 2025
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

曹俊辉 added 4 commits July 15, 2025 10:55
…e better http performance

* fix some bug for partition

* fix for thrift

* fix the thrift exit bug

* Revert "[feat](http): use async reply to provide better http performance

* ensure free order

* [Fix](stream-load) Fix stream load stuck under high concurrency (apache#36772)

When the concurrency of streamload exceeds the number of threads in the
remote scanner, streamload may get stuck. The reason is that the
libevent thread blocks and waits for streamload to complete, and when
there is no intersection between the tasks handled by the scanner thread
and the libevent thread, it gets stuck.
The solution is to convert the synchronous waiting tasks of libevent
into asynchronous execution by using callbacks in the streamload
executor thread.

See merge request: !740"
Revert commit d9e74efa762c8161a5ca3df4290bbd0ab896f1ef

See merge request: !745"
Revert commit 396cb2ec7e0b1a21bc0d7424c627f0d9321884bc
* fix missing ;


* fix stream load block


See merge request: !855
@doris-robot
Copy link

TPC-DS: Total hot run time: 187939 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit edd050f9a14dad88e7f5bd3e6bdcbaae41b31eb6, data reload: false

query1	1055	413	392	392
query2	6608	1741	1677	1677
query3	6751	231	225	225
query4	26262	23849	23204	23204
query5	4408	618	473	473
query6	336	228	209	209
query7	4648	486	291	291
query8	289	240	238	238
query9	8679	2580	2591	2580
query10	485	331	280	280
query11	15755	15038	14934	14934
query12	202	118	116	116
query13	1682	556	451	451
query14	10869	9159	9143	9143
query15	201	191	165	165
query16	7495	699	519	519
query17	1218	770	621	621
query18	2011	420	323	323
query19	214	202	207	202
query20	131	127	119	119
query21	227	130	113	113
query22	4178	4231	4139	4139
query23	33913	33192	33076	33076
query24	8429	2361	2405	2361
query25	603	520	438	438
query26	1227	272	161	161
query27	2756	503	355	355
query28	4413	2195	2181	2181
query29	806	634	527	527
query30	302	229	197	197
query31	910	798	741	741
query32	80	71	75	71
query33	597	379	326	326
query34	804	857	527	527
query35	807	864	743	743
query36	961	971	911	911
query37	117	117	85	85
query38	3511	3534	3494	3494
query39	1499	1409	1406	1406
query40	223	125	119	119
query41	62	60	64	60
query42	130	122	112	112
query43	490	495	470	470
query44	1219	750	750	750
query45	189	180	183	180
query46	879	1002	636	636
query47	1761	1798	1726	1726
query48	390	430	318	318
query49	772	518	422	422
query50	644	678	398	398
query51	3902	3919	3898	3898
query52	110	109	104	104
query53	232	263	198	198
query54	308	293	275	275
query55	88	90	86	86
query56	304	319	307	307
query57	1205	1210	1135	1135
query58	296	289	280	280
query59	2516	2699	2514	2514
query60	355	372	352	352
query61	198	187	192	187
query62	791	759	669	669
query63	223	196	195	195
query64	4669	1263	990	990
query65	4042	3935	3956	3935
query66	1147	475	360	360
query67	15598	15292	15071	15071
query68	7805	919	601	601
query69	506	330	294	294
query70	1308	1315	1307	1307
query71	437	352	343	343
query72	6265	4921	4769	4769
query73	639	557	368	368
query74	8770	9144	8604	8604
query75	3292	3284	2838	2838
query76	3221	1176	736	736
query77	501	408	300	300
query78	9698	9838	8888	8888
query79	2014	836	589	589
query80	1615	571	487	487
query81	558	260	233	233
query82	425	161	137	137
query83	295	256	260	256
query84	262	111	102	102
query85	913	461	435	435
query86	470	309	294	294
query87	3658	3733	3619	3619
query88	2831	2262	2231	2231
query89	386	333	301	301
query90	1750	218	219	218
query91	167	160	135	135
query92	75	71	71	71
query93	1250	962	642	642
query94	743	426	351	351
query95	409	312	309	309
query96	480	568	285	285
query97	2898	2971	2925	2925
query98	233	212	211	211
query99	1334	1429	1299	1299
Total cold run time: 273390 ms
Total hot run time: 187939 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 27.44 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit edd050f9a14dad88e7f5bd3e6bdcbaae41b31eb6, data reload: false

query1	0.05	0.05	0.05
query2	0.10	0.05	0.05
query3	0.26	0.09	0.08
query4	1.61	0.12	0.12
query5	0.28	0.25	0.25
query6	1.18	0.64	0.64
query7	0.03	0.03	0.03
query8	0.06	0.04	0.04
query9	0.61	0.52	0.51
query10	0.58	0.57	0.56
query11	0.16	0.11	0.11
query12	0.15	0.12	0.11
query13	0.62	0.60	0.60
query14	1.00	0.99	1.00
query15	0.85	0.84	0.83
query16	0.40	0.40	0.39
query17	1.05	1.06	1.04
query18	0.21	0.20	0.20
query19	1.83	1.77	1.84
query20	0.02	0.01	0.01
query21	15.44	0.19	0.12
query22	5.05	0.08	0.04
query23	15.70	0.26	0.10
query24	2.63	0.46	0.47
query25	0.07	0.06	0.05
query26	0.15	0.13	0.13
query27	0.06	0.06	0.05
query28	4.98	1.14	0.93
query29	12.58	3.89	3.22
query30	0.29	0.16	0.12
query31	2.82	0.58	0.38
query32	3.23	0.56	0.46
query33	3.13	3.18	3.04
query34	15.74	5.14	4.55
query35	4.58	4.59	4.60
query36	0.66	0.50	0.49
query37	0.10	0.06	0.07
query38	0.06	0.04	0.04
query39	0.03	0.02	0.02
query40	0.17	0.14	0.13
query41	0.09	0.03	0.04
query42	0.04	0.03	0.02
query43	0.05	0.03	0.03
Total cold run time: 98.7 s
Total hot run time: 27.44 s

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 11.57% (14/121) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 52.78% (18238/34556)
Line Coverage 38.15% (165932/434940)
Region Coverage 33.13% (129042/389456)
Branch Coverage 33.88% (55367/163399)

@Userwhite Userwhite force-pushed the cherry-pick-stream-load-async branch from edd050f to fc686f4 Compare November 11, 2025 07:33
@Userwhite
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 35713 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit fc686f4f32dd52add68943f3244120cead243f16, data reload: false

------ Round 1 ----------------------------------
q1	17597	5331	5179	5179
q2	2025	316	204	204
q3	10248	1321	749	749
q4	10244	922	376	376
q5	7500	2365	2470	2365
q6	192	169	136	136
q7	937	787	622	622
q8	9343	1363	1247	1247
q9	6937	5145	5272	5145
q10	6893	2248	1841	1841
q11	496	310	263	263
q12	340	385	239	239
q13	17790	3791	3122	3122
q14	230	240	212	212
q15	578	507	505	505
q16	1016	996	953	953
q17	588	917	374	374
q18	7438	7613	8065	7613
q19	1231	963	596	596
q20	377	382	250	250
q21	4659	3947	2641	2641
q22	1164	1089	1081	1081
Total cold run time: 107823 ms
Total hot run time: 35713 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5522	5383	5474	5383
q2	253	351	254	254
q3	2379	2924	2543	2543
q4	1472	1992	1521	1521
q5	4594	4482	4567	4482
q6	217	173	133	133
q7	2105	1915	1826	1826
q8	2629	2694	2679	2679
q9	7341	7317	7257	7257
q10	3142	3253	2842	2842
q11	591	535	501	501
q12	675	798	617	617
q13	3350	3707	3077	3077
q14	265	280	250	250
q15	519	493	492	492
q16	1017	1049	1021	1021
q17	1117	1492	1359	1359
q18	7308	7256	7037	7037
q19	829	826	899	826
q20	1928	1997	1873	1873
q21	5039	4380	4512	4380
q22	1104	1037	1009	1009
Total cold run time: 53396 ms
Total hot run time: 51362 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 188398 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit fc686f4f32dd52add68943f3244120cead243f16, data reload: false

query1	1062	398	393	393
query2	6585	1744	1726	1726
query3	6762	227	215	215
query4	26410	23488	23433	23433
query5	4402	633	470	470
query6	337	240	216	216
query7	4649	499	300	300
query8	298	272	240	240
query9	8687	2590	2617	2590
query10	503	347	304	304
query11	15648	15069	14816	14816
query12	183	128	116	116
query13	1708	570	452	452
query14	11259	9339	9266	9266
query15	200	187	177	177
query16	7614	658	529	529
query17	1225	765	602	602
query18	2015	419	319	319
query19	200	202	174	174
query20	135	128	122	122
query21	222	133	114	114
query22	3988	4179	3850	3850
query23	34021	33216	33226	33216
query24	8549	2412	2403	2403
query25	581	521	483	483
query26	1238	279	170	170
query27	2734	509	358	358
query28	4404	2238	2214	2214
query29	863	603	487	487
query30	297	223	196	196
query31	901	857	727	727
query32	82	70	73	70
query33	590	370	333	333
query34	807	853	531	531
query35	813	836	739	739
query36	966	985	913	913
query37	125	114	91	91
query38	3544	3542	3426	3426
query39	1499	1429	1413	1413
query40	231	135	121	121
query41	63	61	66	61
query42	133	114	116	114
query43	511	500	483	483
query44	1265	769	753	753
query45	187	188	178	178
query46	891	994	642	642
query47	1765	1775	1716	1716
query48	388	435	321	321
query49	795	526	410	410
query50	666	695	412	412
query51	3913	3881	3835	3835
query52	108	113	103	103
query53	251	280	194	194
query54	319	298	277	277
query55	93	88	87	87
query56	333	328	306	306
query57	1173	1236	1116	1116
query58	300	284	269	269
query59	2532	2638	2635	2635
query60	359	348	342	342
query61	167	168	159	159
query62	816	722	677	677
query63	237	194	192	192
query64	4427	1177	866	866
query65	4051	3955	3980	3955
query66	1114	447	338	338
query67	15151	15095	14915	14915
query68	4629	913	604	604
query69	499	333	300	300
query70	1305	1270	1264	1264
query71	429	339	317	317
query72	6038	5037	5185	5037
query73	651	620	369	369
query74	8910	8846	8923	8846
query75	3326	3341	2842	2842
query76	3278	1169	770	770
query77	525	455	338	338
query78	9555	9745	8935	8935
query79	2109	816	592	592
query80	1171	599	503	503
query81	559	265	228	228
query82	406	159	130	130
query83	261	263	248	248
query84	259	115	97	97
query85	891	480	448	448
query86	417	315	299	299
query87	3650	3745	3611	3611
query88	2953	2268	2259	2259
query89	384	332	298	298
query90	1942	236	225	225
query91	170	164	134	134
query92	81	69	61	61
query93	2061	1018	638	638
query94	777	440	345	345
query95	396	326	309	309
query96	490	563	278	278
query97	2925	2982	2875	2875
query98	240	215	207	207
query99	1346	1388	1320	1320
Total cold run time: 270978 ms
Total hot run time: 188398 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 27.43 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit fc686f4f32dd52add68943f3244120cead243f16, data reload: false

query1	0.06	0.05	0.05
query2	0.10	0.06	0.05
query3	0.25	0.08	0.09
query4	1.61	0.12	0.12
query5	0.27	0.25	0.25
query6	1.19	0.65	0.66
query7	0.04	0.03	0.03
query8	0.05	0.04	0.04
query9	0.62	0.53	0.53
query10	0.58	0.56	0.57
query11	0.16	0.11	0.12
query12	0.15	0.12	0.12
query13	0.64	0.61	0.60
query14	1.02	1.00	1.00
query15	0.85	0.83	0.86
query16	0.41	0.42	0.39
query17	1.05	1.06	1.01
query18	0.21	0.19	0.20
query19	1.93	1.87	1.76
query20	0.01	0.02	0.01
query21	15.47	0.17	0.12
query22	5.22	0.06	0.05
query23	15.66	0.27	0.10
query24	2.40	0.84	0.29
query25	0.08	0.06	0.05
query26	0.14	0.12	0.12
query27	0.07	0.05	0.06
query28	3.69	1.12	0.93
query29	12.66	3.94	3.21
query30	0.29	0.13	0.12
query31	2.81	0.58	0.38
query32	3.23	0.56	0.47
query33	3.07	3.15	3.12
query34	15.88	5.24	4.59
query35	4.60	4.67	4.58
query36	0.67	0.51	0.50
query37	0.10	0.07	0.07
query38	0.06	0.04	0.04
query39	0.04	0.03	0.03
query40	0.18	0.13	0.14
query41	0.09	0.03	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.04
Total cold run time: 97.69 s
Total hot run time: 27.43 s

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 11.57% (14/121) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 52.82% (18285/34619)
Line Coverage 38.18% (166225/435325)
Region Coverage 33.17% (129209/389583)
Branch Coverage 33.91% (55447/163507)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 87.69% (114/130) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 72.42% (24637/34019)
Line Coverage 59.28% (258466/436002)
Region Coverage 55.39% (218830/395072)
Branch Coverage 56.35% (92738/164580)

@Userwhite
Copy link
Contributor Author

run buildall

@Userwhite
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 11.57% (14/121) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 53.39% (18967/35526)
Line Coverage 39.27% (176014/448242)
Region Coverage 33.81% (136117/402615)
Branch Coverage 34.76% (58815/169181)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 82.31% (107/130) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 63.00% (21882/34731)
Line Coverage 49.63% (221872/447055)
Region Coverage 45.68% (185812/406775)
Branch Coverage 46.13% (78300/169739)

@Userwhite
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 11.38% (14/123) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 53.43% (18980/35526)
Line Coverage 39.29% (176135/448244)
Region Coverage 33.86% (136345/402634)
Branch Coverage 34.79% (58863/169181)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 82.58% (109/132) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 63.08% (21908/34731)
Line Coverage 49.73% (222325/447057)
Region Coverage 45.35% (184498/406794)
Branch Coverage 46.13% (78293/169739)

@Userwhite
Copy link
Contributor Author

run buildall

@Userwhite
Copy link
Contributor Author

run buildall

1 similar comment
@Userwhite
Copy link
Contributor Author

run buildall

@Userwhite
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 32488 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit c046f5b83957a603fdf183cc7133ca3490c137c6, data reload: false

------ Round 1 ----------------------------------
q1	17625	4220	4061	4061
q2	2008	351	234	234
q3	10182	1258	728	728
q4	10214	818	318	318
q5	7522	2128	1915	1915
q6	189	174	137	137
q7	935	807	654	654
q8	9281	1413	1111	1111
q9	5231	4770	4791	4770
q10	6811	1790	1368	1368
q11	526	311	288	288
q12	689	769	605	605
q13	17803	3889	3166	3166
q14	295	290	285	285
q15	577	531	506	506
q16	713	687	626	626
q17	710	762	620	620
q18	6949	6430	7117	6430
q19	1191	1008	664	664
q20	435	394	261	261
q21	3448	2837	2679	2679
q22	1209	1111	1062	1062
Total cold run time: 104543 ms
Total hot run time: 32488 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4354	4397	4229	4229
q2	347	413	342	342
q3	2241	2809	2471	2471
q4	1430	1881	1494	1494
q5	4603	4543	4300	4300
q6	203	164	127	127
q7	2079	1938	1779	1779
q8	2532	2294	2343	2294
q9	7089	7020	7044	7020
q10	2516	2829	2231	2231
q11	537	464	444	444
q12	716	784	616	616
q13	3453	3833	3158	3158
q14	274	277	257	257
q15	524	492	494	492
q16	625	660	613	613
q17	1106	1225	1313	1225
q18	7361	7259	7310	7259
q19	867	858	885	858
q20	1904	1971	1801	1801
q21	4591	4324	4234	4234
q22	1118	1015	998	998
Total cold run time: 50470 ms
Total hot run time: 48242 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 173992 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit c046f5b83957a603fdf183cc7133ca3490c137c6, data reload: false

query5	4500	606	473	473
query6	331	237	216	216
query7	4210	470	269	269
query8	349	274	244	244
query9	8766	2650	2660	2650
query10	534	374	328	328
query11	15352	15233	15023	15023
query12	185	121	119	119
query13	1281	511	400	400
query14	6232	3098	2861	2861
query14_1	2809	2675	2661	2661
query15	207	198	175	175
query16	978	456	437	437
query17	1078	698	552	552
query18	2454	431	337	337
query19	227	222	191	191
query20	127	123	119	119
query21	210	147	127	127
query22	3968	4134	3867	3867
query23	15789	15525	15164	15164
query23_1	15414	15300	15289	15289
query24	7377	1646	1254	1254
query24_1	1238	1193	1241	1193
query25	560	462	401	401
query26	1249	269	169	169
query27	2752	467	301	301
query28	4544	2210	2203	2203
query29	852	614	436	436
query30	317	242	211	211
query31	819	633	541	541
query32	76	71	68	68
query33	541	336	301	301
query34	907	938	555	555
query35	750	804	716	716
query36	909	904	831	831
query37	141	96	77	77
query38	2784	2807	2682	2682
query39	783	755	730	730
query39_1	706	708	737	708
query40	219	144	124	124
query41	67	67	61	61
query42	112	105	106	105
query43	430	463	407	407
query44	1402	772	765	765
query45	190	182	175	175
query46	923	1019	635	635
query47	1345	1437	1299	1299
query48	319	332	245	245
query49	600	430	346	346
query50	671	299	218	218
query51	3781	3848	3797	3797
query52	109	109	96	96
query53	327	342	278	278
query54	305	263	247	247
query55	78	75	74	74
query56	338	304	299	299
query57	984	1001	936	936
query58	278	264	256	256
query59	2015	2156	2124	2124
query60	329	332	301	301
query61	162	151	159	151
query62	391	373	312	312
query63	308	267	275	267
query64	4996	1300	976	976
query65	3849	3754	3689	3689
query66	1442	447	317	317
query67	14793	15705	15145	15145
query68	2772	1049	772	772
query69	456	366	307	307
query70	981	959	934	934
query71	328	311	280	280
query72	6384	3730	3698	3698
query73	619	773	322	322
query74	8814	8824	8572	8572
query75	2828	2890	2519	2519
query76	2958	1112	705	705
query77	364	399	287	287
query78	9871	9854	9122	9122
query79	2349	890	650	650
query80	1701	617	506	506
query81	564	264	242	242
query82	1009	150	117	117
query83	377	261	246	246
query84	253	126	108	108
query85	979	536	462	462
query86	409	318	326	318
query87	2956	2964	2802	2802
query88	3442	2284	2306	2284
query89	408	373	342	342
query90	1932	164	155	155
query91	184	168	141	141
query92	69	69	68	68
query93	1170	980	567	567
query94	645	317	289	289
query95	580	331	310	310
query96	598	467	215	215
query97	2312	2350	2288	2288
query98	251	208	223	208
query99	580	570	505	505
Total cold run time: 253313 ms
Total hot run time: 173992 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 27.43 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit c046f5b83957a603fdf183cc7133ca3490c137c6, data reload: false

query1	0.05	0.05	0.04
query2	0.10	0.06	0.05
query3	0.26	0.09	0.08
query4	1.61	0.11	0.11
query5	0.29	0.26	0.24
query6	1.15	0.65	0.66
query7	0.03	0.03	0.02
query8	0.05	0.04	0.04
query9	0.57	0.49	0.50
query10	0.57	0.56	0.53
query11	0.15	0.11	0.12
query12	0.17	0.13	0.12
query13	0.62	0.61	0.60
query14	0.98	0.98	0.98
query15	0.83	0.80	0.80
query16	0.39	0.41	0.41
query17	1.07	1.04	1.08
query18	0.23	0.22	0.22
query19	1.97	1.81	1.82
query20	0.02	0.02	0.02
query21	15.43	0.26	0.15
query22	4.75	0.06	0.05
query23	16.04	0.29	0.10
query24	0.95	0.61	0.62
query25	0.11	0.08	0.07
query26	0.14	0.13	0.14
query27	0.08	0.07	0.07
query28	4.34	1.06	0.90
query29	12.59	3.97	3.19
query30	0.27	0.14	0.12
query31	2.81	0.64	0.39
query32	3.24	0.56	0.47
query33	2.98	2.96	3.02
query34	16.81	5.09	4.50
query35	4.54	4.58	4.50
query36	0.65	0.50	0.50
query37	0.12	0.06	0.07
query38	0.07	0.05	0.04
query39	0.04	0.04	0.03
query40	0.17	0.13	0.13
query41	0.10	0.03	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.04
Total cold run time: 97.42 s
Total hot run time: 27.43 s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] use stream load async return to optimize the performance under high concurrency

5 participants