f1 () = begin
t = rand(1000, 1000)
t += 100I
b = ones(1000)
end
@btime f1();
# 1.111 ms (4 allocations: 15.26 MiB)
f2 () = begin
t = rand(1000, 1000)
t += 100I
b = ones(1000)
LAPACK.posv!('L', t, b)
end
@btime f2();
# 4.723 ms (5 allocations: 15.27 MiB)
t = rand(1000, 1000)
@btime t \ ones(1000)
# 6.188 ms (5 allocations: 7.65 MiB)
About half of the time saved.