From 3c65431e6ce7c0e894b71f6fc4d69aacac8489e0 Mon Sep 17 00:00:00 2001 From: Peter Thomas Date: Tue, 20 Jul 2021 20:53:37 +0530 Subject: [PATCH] improve profiling helper project #1685 --- examples/profiling-test/src/test/java/perf/Main.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/profiling-test/src/test/java/perf/Main.java b/examples/profiling-test/src/test/java/perf/Main.java index 873f0f200..2ab6d6ffd 100644 --- a/examples/profiling-test/src/test/java/perf/Main.java +++ b/examples/profiling-test/src/test/java/perf/Main.java @@ -43,9 +43,10 @@ public void pause(Number millis) { } }; + Runner.Builder builder = Runner.builder(); while (true) { count++; - Runner.callAsync(Runner.builder(), "classpath:perf/test.feature", null, hook); + Runner.callAsync(builder, "classpath:perf/test.feature", null, hook); System.out.print(count + " "); if (count % 100 == 0) { System.out.println("");