Skip to content

Commit

Permalink
benchmark fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtzook committed Jan 5, 2020
1 parent 4599dbc commit 10c5dc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Blackhole> mBlackholeProperty = new SimpleProperty<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 10c5dc9

Please sign in to comment.