Skip to content

Commit 6283522

Browse files
fix(perf): retain scheduler benchmark world (#75)
Co-authored-by: Arbousier1 <elderli@foxmail.com>
1 parent 579d980 commit 6283522

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/perfTest/java/top/ellan/mahjong/perf/ServerSchedulerReflectionBenchmark.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ public class ServerSchedulerReflectionBenchmark {
3939

4040
private Harness folia;
4141
private Harness paper;
42+
private World world;
4243
private Location location;
4344

4445
@Setup(Level.Trial)
4546
public void setUp() {
46-
World world = proxy(World.class, ServerSchedulerReflectionBenchmark::unsupported);
47-
this.location = new Location(world, 8.0, 64.0, -8.0);
47+
this.world = proxy(World.class, ServerSchedulerReflectionBenchmark::unsupported);
48+
this.location = new Location(this.world, 8.0, 64.0, -8.0);
4849
this.folia = createFoliaHarness();
4950
this.paper = createPaperHarness();
5051
this.verifyContract();

0 commit comments

Comments
 (0)