From 10c5dc93b401e517fbc314869e5b1da1a4f6a317 Mon Sep 17 00:00:00 2001 From: Tom Tzook Date: Sun, 5 Jan 2020 18:37:23 +0200 Subject: [PATCH] benchmark fix --- .../robot/scheduling/SchedulerExecutionBenchmark.java | 2 +- .../flashlib/robot/scheduling/SchedulerStartBenchmark.java | 6 +++--- .../flashlib/robot/scheduling/SchedulerStopBenchmark.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerExecutionBenchmark.java b/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerExecutionBenchmark.java index 2088ab890..201a4496b 100644 --- a/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerExecutionBenchmark.java +++ b/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerExecutionBenchmark.java @@ -22,7 +22,7 @@ @State(Scope.Thread) public class SchedulerExecutionBenchmark { - private static final RobotMode ROBOT_MODE = new RobotMode("test", 1); + private static final RobotMode ROBOT_MODE = RobotMode.create("test", 1); private Property mBlackholeProperty = new SimpleProperty<>(); diff --git a/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerStartBenchmark.java b/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerStartBenchmark.java index c628f5ebe..e1480121e 100644 --- a/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerStartBenchmark.java +++ b/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerStartBenchmark.java @@ -15,7 +15,7 @@ @State(Scope.Thread) public class SchedulerStartBenchmark { - private static final RobotMode ROBOT_MODE = new RobotMode("test", 1); + private static final RobotMode ROBOT_MODE = RobotMode.create("test", 1); @Param({"SINGLE_THREAD"}) private SchedulerImpl mSchedulerImpl; @@ -36,13 +36,13 @@ public void setup() { @Benchmark @BenchmarkMode({Mode.Throughput, Mode.AverageTime}) - public void startAction_withEmptyAction_withConflicState() { + public void startAction_withEmptyAction_withConflictState() { mAction.start(); } @Benchmark @BenchmarkMode({Mode.Throughput, Mode.AverageTime}) - public void startActionAndIterate_withEmptyAction_withConflicState() { + public void startActionAndIterate_withEmptyAction_withConflictState() { mAction.start(); mScheduler.run(ROBOT_MODE); } diff --git a/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerStopBenchmark.java b/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerStopBenchmark.java index ee807a437..9649c013e 100644 --- a/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerStopBenchmark.java +++ b/flashlibj/src/jmh/java/com/flash3388/flashlib/robot/scheduling/SchedulerStopBenchmark.java @@ -15,7 +15,7 @@ @State(Scope.Thread) public class SchedulerStopBenchmark { - private static final RobotMode ROBOT_MODE = new RobotMode("test", 1); + private static final RobotMode ROBOT_MODE = RobotMode.create("test", 1); @Param({"SINGLE_THREAD"}) private SchedulerImpl mSchedulerImpl;