@@ -73,8 +73,7 @@ terminate({SummaryFile, ErrorsFile}) ->
7373 ? INFO (" module=~s event=stop stats_sink=csv\n " , [? MODULE ]),
7474
7575 % % write out run-wide statistics before exiting
76- RunStatsType = basho_bench_config :get (run_statistics_output_format , csv ),
77- dump_run_statistics (RunStatsType ),
76+ dump_run_statistics (),
7877
7978 [ok = file :close (F ) || {{csv_file , _ }, F } <- erlang :get ()],
8079 ok = file :close (SummaryFile ),
@@ -194,15 +193,13 @@ measurement_csv_file({Label, _Op}) ->
194193
195194
196195
197- dump_run_statistics (RunStatsType ) ->
198- Lines = stringify_stats (RunStatsType , erlang :get (run_metrics )),
196+ dump_run_statistics () ->
197+ Lines = stringify_stats (erlang :get (run_metrics )),
199198 TestDir = basho_bench :get_test_dir (),
200- FileName = filename :join ([TestDir , " run_statistics." ++ atom_to_list ( RunStatsType ) ]),
199+ FileName = filename :join ([TestDir , " run_statistics.csv " ]),
201200 write_run_statistics (FileName , Lines ).
202201
203- stringify_stats (_RunStatsType = json , RunMetrics ) ->
204- [ jiffy :encode ( {[{recordedMetrics , {RunMetrics }}]}, [pretty ] ) ];
205- stringify_stats (_RunStatsType = csv , RunMetrics ) ->
202+ stringify_stats (RunMetrics ) ->
206203 % Ordered output of fields
207204 OrderedFields = [n , ops , concurrency , mean , geometric_mean , harmonic_mean ,
208205 variance , standard_deviation , skewness , kurtosis ,
0 commit comments