Skip to content

Commit 35c41f1

Browse files
chewbrancaksnavely
andauthored
187 fdb acceptance jiffy chewbranca (#48)
* jiffy 1.0.4 * Remove jiffy Co-authored-by: Kyle Snavely <[email protected]>
1 parent 21c8716 commit 35c41f1

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

rebar.config

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
{getopt, ".*", {git, "git://github.com/jcomellas/getopt", {tag, "v0.8.2"}}},
1111
{lager, ".*", {git, "https://github.com/erlang-lager/lager.git", {tag, "3.6.8"}}},
1212
{ibrowse, ".*", {git, "https://github.com/apache/couchdb-ibrowse.git", "4af2d408607874d124414ac45df1edbe3961d1cd"}},
13-
{goldrush, ".*", {git, "https://git-wip-us.apache.org/repos/asf/couchdb-goldrush.git", {tag, "0.1.6"}}},
14-
{jiffy, ".*", {git, "https://github.com/davisp/jiffy.git", {tag, "0.14.7"}}}
13+
{goldrush, ".*", {git, "https://git-wip-us.apache.org/repos/asf/couchdb-goldrush.git", {tag, "0.1.6"}}}
1514
]}.
1615

1716
{erl_opts, [{src_dirs, [src]}, {parse_transform, lager_transform}]}.
@@ -22,7 +21,6 @@
2221
getopt,
2322
goldrush,
2423
ibrowse,
25-
jiffy,
2624
lager
2725
]}.
2826

src/basho_bench_stats_writer_csv.erl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)