Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 966342c

Browse files
committed
update PageRank benchmark
1 parent 2460c92 commit 966342c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

benchmark/src/main/java/org/neo4j/graphalgo/bench/PageRankBenchmarkLdbc.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.neo4j.graphalgo.api.Graph;
2222
import org.neo4j.graphalgo.core.GraphLoader;
2323
import org.neo4j.graphalgo.core.utils.Pools;
24+
import org.neo4j.graphalgo.core.utils.paged.AllocationTracker;
2425
import org.neo4j.graphalgo.impl.PageRankResult;
2526
import org.neo4j.graphalgo.impl.PageRankAlgorithm;
2627
import org.neo4j.graphdb.Direction;
@@ -42,6 +43,7 @@
4243

4344
import java.io.IOException;
4445
import java.util.concurrent.TimeUnit;
46+
import java.util.stream.LongStream;
4547

4648
@Threads(1)
4749
@Fork(value = 3, jvmArgs = {"-Xms8g", "-Xmx8g", "-XX:+UseG1GC"})
@@ -85,17 +87,17 @@ public void shutdown() {
8587
Pools.DEFAULT.shutdownNow();
8688
}
8789

88-
/*
8990
@Benchmark
9091
public PageRankResult run() throws Exception {
9192
return PageRankAlgorithm.of(
93+
AllocationTracker.EMPTY,
9294
grph,
9395
0.85,
96+
LongStream.empty(),
9497
Pools.DEFAULT,
9598
Pools.getNoThreadsInDefaultPool(),
9699
batchSize)
97100
.compute(iterations)
98101
.result();
99102
}
100-
*/
101103
}

0 commit comments

Comments
 (0)