Skip to content

Commit ea0af09

Browse files
simonsterjrevels
authored andcommitted
Add benchmark for A_mul_B! with different input and output (#15)
In JuliaLang/julia#14722, I fixed an issue where the inner loop was type-unstable. This benchmark ensures that doesn't regress.
1 parent d5689b5 commit ea0af09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/linalg/LinAlgBenchmarks.jl

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ for s in SIZES
5656
g["/", mstr, mstr, s] = @benchmarkable /($m, $m)
5757
g["\\", mstr, mstr, s] = @benchmarkable \($m, $m)
5858
end
59+
# Issue #14722
60+
C = zeros(Float32, s, s)
61+
A = randmat(s)
62+
B = randmat(s)
63+
g["A_mul_B!", "Matrix{Float32}", "Matrix{Float64}", "Matrix{Float64}", s] = @benchmarkable A_mul_B!($C, $A, $B)
5964
end
6065

6166
for b in values(g)

0 commit comments

Comments
 (0)