@Test public void canGenerateBenchmarkNameForTestWithoutKeyValueService() { BenchmarkParams params = createBenchmarkParams(FULL_BENCHMARK_NAME, "foo", "bar"); assertThat(PerformanceResults.getBenchmarkName(params)).isEqualTo(FORMATTED_BENCHMARK_NAME_AGNOSTIC); }
@VisibleForTesting static String getBenchmarkName(BenchmarkParams params) { Optional<String> benchmarkUriSuffix = Optional.ofNullable(params.getParam(BenchmarkParam.URI.getKey())) .map(DockerizedDatabaseUri::fromUriString) .map(uri -> uri.getKeyValueServiceInstrumentation().toString()); return formatBenchmarkString(params.getBenchmark(), benchmarkUriSuffix); }
PerformanceResults { @VisibleForTesting static String getBenchmarkName(BenchmarkParams params) { Optional<String> benchmarkUriSuffix = Optional.ofNullable(params.getParam(BenchmarkParam.URI.getKey())) .map(DockerizedDatabaseUri::fromUriString) .map(uri -> uri.getKeyValueServiceInstrumentation().toString()); return formatBenchmarkString(params.getBenchmark(), benchmarkUriSuffix); } }
PerformanceResults { @VisibleForTesting static String getBenchmarkName(BenchmarkParams params) { Optional<String> benchmarkUriSuffix = Optional.ofNullable(params.getParam(BenchmarkParam.URI.getKey())) .map(DockerizedDatabaseUri::fromUriString) .map(uri -> uri.getKeyValueServiceInstrumentation().toString()); return formatBenchmarkString(params.getBenchmark(), benchmarkUriSuffix); } PerformanceResults(Collection<RunResult> results); }
PerformanceResults { @VisibleForTesting static String getBenchmarkName(BenchmarkParams params) { Optional<String> benchmarkUriSuffix = Optional.ofNullable(params.getParam(BenchmarkParam.URI.getKey())) .map(DockerizedDatabaseUri::fromUriString) .map(uri -> uri.getKeyValueServiceInstrumentation().toString()); return formatBenchmarkString(params.getBenchmark(), benchmarkUriSuffix); } PerformanceResults(Collection<RunResult> results); void writeToFile(File file); }
PerformanceResults { @VisibleForTesting static String getBenchmarkName(BenchmarkParams params) { Optional<String> benchmarkUriSuffix = Optional.ofNullable(params.getParam(BenchmarkParam.URI.getKey())) .map(DockerizedDatabaseUri::fromUriString) .map(uri -> uri.getKeyValueServiceInstrumentation().toString()); return formatBenchmarkString(params.getBenchmark(), benchmarkUriSuffix); } PerformanceResults(Collection<RunResult> results); void writeToFile(File file); static final int DOWNSAMPLE_MAXIMUM_SIZE; }