Browse Source

测试新增

master
AICells 4 years ago
parent
commit
92626650ec
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      src/testCase/ListPdTs/utListPdTs.erl
  2. +1
    -1
      src/testCase/ListPdTs/utListTs.erl

+ 4
- 4
src/testCase/ListPdTs/utListPdTs.erl View File

@ -46,15 +46,15 @@ runCnt(Cnt, Num, Ds) ->
runExe(Num, Ds) ->
Pid = erlang:spawn_link(Ds, start, [Num, self()]),
receive
{over, Pid, Insert, Read, Update, For, Delete} ->
{over, Pid, Insert, Read, Delete} ->
storeStatistics(Ds, Num, Insert, Read, Delete),
{_, DsName} = lists:split(2, atom_to_list(Ds)),
printLog("~-10.s ~8.s ~12.s ~12.s ~10.s ~12.s ~10.s ~14.s ~10.s ~12.s ~12.s ~12.s ~n",
[DsName, integer_to_list(Num), timeToStr(Insert), calcPer(Insert, Num), timeToStr(Read), calcPer(Read, Num), timeToStr(Update), calcPer(Update, Num), timeToStr(For), calcPer(For, Num), timeToStr(Delete), calcPer(Delete, Num)]);
printLog("~-10.s ~8.s ~12.s ~12.s ~10.s ~12.s ~12.s ~12.s ~n",
[DsName, integer_to_list(Num), timeToStr(Insert), calcPer(Insert, Num), timeToStr(Read), calcPer(Read, Num), timeToStr(Delete), calcPer(Delete, Num)]);
{'EXIT', Pid, normal} ->
ok;
_ShutDown ->
io:format("Ds test shutDown ~p ~p ~p ~n", [Ds, Num, _ShutDown])
io:format("Ts test shutDown ~p ~p ~p ~n", [Ds, Num, _ShutDown])
end.
runAvg([Ds | T], VNumList) ->

src/testCase/ListPdTs/utListsTs.erl → src/testCase/ListPdTs/utListTs.erl View File

@ -1,4 +1,4 @@
-module(utListsTs).
-module(utListTs).
-compile([nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]).
-export([start/2]).

Loading…
Cancel
Save