From d1ae0fe15c4143231a5b4a43efba4979b374e05a Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Wed, 30 Oct 2024 17:54:38 +0800 Subject: [PATCH] =?UTF-8?q?ft:=20=E5=87=BD=E6=95=B0=E5=90=8D=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/measure/utTc.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/measure/utTc.erl b/src/measure/utTc.erl index 15947f4..caa4f36 100644 --- a/src/measure/utTc.erl +++ b/src/measure/utTc.erl @@ -7,8 +7,8 @@ tc/1 , tc/2 , tc/3 - , ts/4 - , tm/5 + , tc/4 + , tc/5 , test/1 ]). @@ -65,7 +65,7 @@ distribution([], _Aver, Greater, Less) -> %% =================================================================== %% test: one process test N times %% =================================================================== -ts(LoopTime, M, F, A) -> +tc(LoopTime, M, F, A) -> {Max, Min, Sum, Aver, Greater, Less} = loopTs(LoopTime, M, F, A, LoopTime, 0, 0, 0, []), io:format("=====================~n"), case A of [] -> ArgsStr = <<>>; _ -> <<_:16, ArgsStr/binary>> = << <<", ", (iolist_to_binary(io_lib:format("~p", [OArg], [{chars_limit, 80}])))/binary>> || OArg <- A>> end, @@ -107,7 +107,7 @@ loopTs(Index, M, F, A, LoopTime, Max, Min, Sum, List) -> %% Concurrency test: N processes each test one time %% =================================================================== -tm(ProcCnt, LoopTime, M, F, A) -> +tc(ProcCnt, LoopTime, M, F, A) -> loopSpawn(ProcCnt, M, F, A, self(), LoopTime, []), {Max, Min, Sum, Aver, Greater, Less} = collector(ProcCnt, 0, 0, 0, ProcCnt, []), io:format("=====================~n"),