anchor.diff:  %% @end
   %%--------------------------------------------------------------------
   -spec exec_test_repeats(SuiteName :: atom(), CaseName :: atom(), ConfigName :: atom(),
  -    CaseConfig :: proplist(), Reps :: integer() | {test_time, integer()}) -> {RepsDone :: integer(), RepsSummary :: [#parameter{}],
  -    RepsDetails :: [#parameter{}], FailedReps :: map()}.
  +    CaseConfig :: proplist(), Reps :: integer() | {test_time, integer()}) -> {RepsDone :: integer(),
  +    RepsSummary :: [#parameter{}] | [[#parameter{}]], RepsDetails :: [#parameter{}] | [[#parameter{}]],
  +    FailedReps :: map() | [map()]}.
   exec_test_repeats(SuiteName, CaseName, ConfigName, CaseConfig, {timeout, TimeLimit}) ->
       [{cases, Cases}] = ets:lookup(?STRESS_ETS_NAME, cases),
       exec_test_repeats(SuiteName, CaseName, ConfigName, CaseConfig, 1, {timeout, os:timestamp(), TimeLimit},
  
positive.code:         }, SuitesMap)
      },
  
  %%     ct:print("dddd ~p", [NewPerfResults]),
      NewJson = jiffy:encode(#{<<"performance">> => NewPerfResults}, [pretty]),
      file:write_file(?PERFORMANCE_RESULT_FILE, NewJson),
  
  
negative.code:             end
      end.
  
  %%--------------------------------------------------------------------
  %% @private
  %% @doc
  %% Check if stress test should be stopped because of error.
  %% @end
  %%--------------------------------------------------------------------
  -spec check_error(Rep :: integer(), FailedReps :: map()) -> ok | error.
  check_error(Rep, _FailedReps) when Rep < ?STRESS_ERRORS_TO_STOP ->
      ok;
  check_error(Rep, FailedReps) ->
  