Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions lib/megaco/test/megaco_load_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,11 @@ do_single_user_load(SCO,
%% will be zero)
NumCalls = Ok * ?SINGLE_USER_LOAD_NUM_REQUESTS,
if
%% If the run time is less than 1 msec,
%% either the machine is a beast or
%% something has gone wrong.
%% => Assume the latter!
(MSec > 0) andalso
(NumCalls > MSec) ->
%% Each successful loader has performed
%% ?SINGLE_USER_LOAD_NUM_REQUESTS calls
Expand All @@ -601,19 +606,32 @@ do_single_user_load(SCO,
%% Either way, do not report this, will only skew the
%% results.

(Time > 0) andalso
(Ok > 0) ->
Sec = Time div 10000000,
Perf = NumCalls div Sec,
Sec = Time / 10000000,
Perf = NumCalls / Sec,
io:format("~nMultiple loaders result: ~n"
" Number of successful: ~w~n"
" Number of failure: ~w~n"
" Time: ~w sec~n"
" (successful) Calls / sec: ~w~n~n",
" Time: ~.1f sec~n"
" (successful) Calls / sec: ~.1f~n~n",
[Ok, Err, Sec, Perf]),
{
{comment, ?F("~w calls / sec", [Perf])},
undefined
};

true ->
io:format("~nMultiple loaders result: ~n"
" Number of successful: ~w~n"
" Number of failure: ~w~n"
" Time: ~w usec~n~n",
[Ok, Err, Time]),
{
{comment, ?F("~w errors", [Err])},
undefined
}

end;
{Time, Error} ->
io:format("SUL: multiple loaders failed: ~p after ~w~n",
Expand Down
Loading