Skip to content

Commit

Permalink
Fix warnings in benchmark class
Browse files Browse the repository at this point in the history
  • Loading branch information
skrzypo987 authored and sopel39 committed Jun 7, 2021
1 parent e4cae79 commit 856aaf5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
@Measurement(iterations = 50)
@Warmup(iterations = 20)
@Fork(3)
@SuppressWarnings("UseOfSystemOutOrSystemErr")
@SuppressWarnings({"UseOfSystemOutOrSystemErr", "UnstableApiUsage", "ResultOfMethodCallIgnored"})
public class BenchmarkHiveFileFormat
{
private static final long MIN_DATA_SIZE = DataSize.of(50, MEGABYTE).toBytes();
Expand Down Expand Up @@ -531,7 +531,7 @@ public static void main(String[] args)
for (RunResult result : results) {
Statistics inputSizeStats = result.getSecondaryResults().get("inputSize").getStatistics();
Statistics outputSizeStats = result.getSecondaryResults().get("outputSize").getStatistics();
double compressionRatio = 1.0 * inputSizeStats.getSum() / outputSizeStats.getSum();
double compressionRatio = inputSizeStats.getSum() / outputSizeStats.getSum();
String compression = result.getParams().getParam("compression");
String fileFormat = result.getParams().getParam("fileFormat");
String dataSet = result.getParams().getParam("dataSet");
Expand Down

0 comments on commit 856aaf5

Please sign in to comment.