Skip to content

Commit bf4a6c2

Browse files
committed
Split row and column
1 parent 603645b commit bf4a6c2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

benchmark/benchmarks.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ for structure in [:nonsymmetric, :symmetric],
5151
end
5252

5353
for structure in [:nonsymmetric, :symmetric],
54+
partition in (structure == :nonsymmetric ? [:column, :row] : [:column]),
5455
order in [LargestFirst(), SmallestLast(), IncidenceDegree(), DynamicLargestFirst()],
5556
n in [10^3, 10^5],
5657
p in [2 / n, 5 / n, 10 / n]
@@ -66,13 +67,12 @@ for structure in [:nonsymmetric, :symmetric],
6667
end
6768
else
6869
gs = [SMC.BipartiteGraph(A) for A in As]
70+
valside = partition == :row ? Val(1) : Val(2)
6971
bench_ord = @benchmarkable begin
7072
for g in $gs
71-
SMC.vertices(g, Val(1), $order)
72-
SMC.vertices(g, Val(2), $order)
73+
SMC.vertices(g, $valside, $order)
7374
end
7475
end
7576
end
76-
77-
SUITE[:order][structure][string(order)]["n=$n"]["p=$p"] = bench_ord
77+
SUITE[:order][structure][partition][string(order)]["n=$n"]["p=$p"] = bench_ord
7878
end

0 commit comments

Comments
 (0)