diff --git a/benchmark/src/main/java/com/linecorp/decaton/benchmark/Main.java b/benchmark/src/main/java/com/linecorp/decaton/benchmark/Main.java index db4d8d41..136eec87 100644 --- a/benchmark/src/main/java/com/linecorp/decaton/benchmark/Main.java +++ b/benchmark/src/main/java/com/linecorp/decaton/benchmark/Main.java @@ -96,8 +96,8 @@ public final class Main implements Callable { defaultValue = "text") private String resultFormat; - @Option(names = "--file", description = "Result file to write output to. If not specified, output to stdout") - private Path resultFile; + @Option(names = "--output", description = "Result file to write output to. If not specified, output to stdout") + private Path resultOutput; @Option(names = "--file-name-only", description = "Trim file paths in result from its path to filename only") @@ -171,8 +171,8 @@ public Integer call() throws Exception { @SuppressWarnings("OptionalGetWithoutIsPresent") BenchmarkResult sum = results.stream().reduce(BenchmarkResult::plus).get(); BenchmarkResult result = sum.div(results.size()); - if (resultFile != null) { - try (FileOutputStream fos = new FileOutputStream(resultFile.toFile())) { + if (resultOutput != null) { + try (FileOutputStream fos = new FileOutputStream(resultOutput.toFile())) { resultFormat.print(config, fos, result); } } else { diff --git a/cb/run-bm.sh b/cb/run-bm.sh index 9a6d0b1c..7053f08b 100755 --- a/cb/run-bm.sh +++ b/cb/run-bm.sh @@ -27,7 +27,7 @@ function run_with_opts() { --file-name-only \ --warmup 10000000 \ --param=decaton.max.pending.records=10000 \ - --file=$tmp \ + --output=$tmp \ "$@" mv $tmp $out_dir/$name-benchmark.json }