Skip to content

Instantly share code, notes, and snippets.

@denius
Created October 30, 2017 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denius/fcd9e509cbced7455ada65397ed42b76 to your computer and use it in GitHub Desktop.
Save denius/fcd9e509cbced7455ada65397ed42b76 to your computer and use it in GitHub Desktop.
QR benchmark
using StaticArrays
using BenchmarkTools, Compat
a = m = 0
for K = 1:18
a = rand(SMatrix{K,K,Float64,K*K})
m = Matrix(a)
print("K=$K\n")
@time qr(a)
@btime qr($a)
@btime qr($m)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment