This commit is contained in:
Marcin Grzejszczak
2020-07-22 08:32:04 +02:00
parent a49773d639
commit 41010c103d
2 changed files with 3 additions and 0 deletions

View File

@@ -117,6 +117,7 @@ public class ProcessLauncherState {
}
public void run() throws Exception {
System.out.println("Running process");
List<String> args = new ArrayList<>(this.args);
args.add(args.size() - this.length, this.mainClass);
if (extraArgs != null) {

View File

@@ -17,6 +17,7 @@
package org.springframework.cloud.sleuth.benchmarks.jmh.mvc;
import jmh.mbr.junit5.Microbenchmark;
import org.junit.jupiter.api.Disabled;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
@@ -35,6 +36,7 @@ import org.springframework.cloud.sleuth.benchmarks.jmh.ProcessLauncherState;
@Fork(value = 2, warmups = 0)
@BenchmarkMode(Mode.AverageTime)
@Microbenchmark
@Disabled("Process doesn't stop")
public class StartupBenchmarkTests {
static {