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

Commit 36ee83c

Browse files
author
Mark Needham
committed
benchmarks
1 parent 176e3a5 commit 36ee83c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.neo4j.graphdb.Relationship;
3535
import org.neo4j.graphdb.RelationshipType;
3636
import org.neo4j.graphdb.Transaction;
37+
import org.neo4j.graphdb.Direction;
3738
import org.neo4j.internal.kernel.api.exceptions.KernelException;
3839
import org.neo4j.kernel.impl.proc.Procedures;
3940
import org.neo4j.kernel.internal.GraphDatabaseAPI;
@@ -142,20 +143,20 @@ private static Relationship createRelation(Node from, Node to) {
142143

143144
@Benchmark
144145
public long _01_benchmark_ASP() {
145-
return new AllShortestPaths(graph, Pools.DEFAULT, 8)
146+
return new AllShortestPaths(graph, Pools.DEFAULT, 8, Direction.OUTGOING)
146147
.resultStream()
147148
.count();
148149
}
149150

150151
@Benchmark
151152
public long _02_benchmark_MS_ASP() {
152-
return new MSBFSAllShortestPaths(graph, Pools.DEFAULT_CONCURRENCY, Pools.DEFAULT)
153+
return new MSBFSAllShortestPaths(graph, Pools.DEFAULT_CONCURRENCY, Pools.DEFAULT, Direction.OUTGOING)
153154
.resultStream().count();
154155
}
155156

156157
@Benchmark
157158
public long _03_benchmark_Huge_MS_ASP() {
158-
return new HugeMSBFSAllShortestPaths((HugeGraph) graph, AllocationTracker.EMPTY, Pools.DEFAULT_CONCURRENCY, Pools.DEFAULT)
159+
return new HugeMSBFSAllShortestPaths((HugeGraph) graph, AllocationTracker.EMPTY, Pools.DEFAULT_CONCURRENCY, Pools.DEFAULT, Direction.OUTGOING)
159160
.resultStream().count();
160161
}
161162
}

0 commit comments

Comments
 (0)