Skip to content

Commit 9358970

Browse files
committed
Add benchmark report
1 parent a3f715e commit 9358970

File tree

2 files changed

+100
-0
lines changed

2 files changed

+100
-0
lines changed

perf/bench-qr.txt

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
Size(1,1)
2+
Compilation time: 0.386616 seconds (111.68 k allocations: 5.811 MiB)
3+
2.649 ns (0 allocations: 0 bytes)
4+
778.696 ns (21 allocations: 1.13 KiB)
5+
Size(2,2)
6+
Compilation time: 0.024005 seconds (19.69 k allocations: 1.002 MiB)
7+
10.429 ns (0 allocations: 0 bytes)
8+
1.602 μs (21 allocations: 1.22 KiB)
9+
Size(3,3)
10+
Compilation time: 0.037816 seconds (38.85 k allocations: 1.885 MiB)
11+
33.545 ns (0 allocations: 0 bytes)
12+
2.508 μs (21 allocations: 1.50 KiB)
13+
Size(4,4)
14+
Compilation time: 0.061655 seconds (75.39 k allocations: 3.573 MiB)
15+
64.099 ns (0 allocations: 0 bytes)
16+
3.352 μs (21 allocations: 1.78 KiB)
17+
Size(5,5)
18+
Compilation time: 0.110812 seconds (139.52 k allocations: 6.376 MiB)
19+
118.805 ns (0 allocations: 0 bytes)
20+
4.359 μs (21 allocations: 2.53 KiB)
21+
Size(6,6)
22+
Compilation time: 0.176334 seconds (247.47 k allocations: 10.854 MiB)
23+
159.423 ns (0 allocations: 0 bytes)
24+
5.320 μs (21 allocations: 2.91 KiB)
25+
Size(7,7)
26+
Compilation time: 0.281787 seconds (414.78 k allocations: 17.502 MiB)
27+
279.791 ns (0 allocations: 0 bytes)
28+
6.324 μs (21 allocations: 3.75 KiB)
29+
Size(8,8)
30+
Compilation time: 0.418656 seconds (663.01 k allocations: 27.114 MiB, 0.67% gc time)
31+
295.032 ns (0 allocations: 0 bytes)
32+
7.336 μs (21 allocations: 4.22 KiB)
33+
Size(9,9)
34+
Compilation time: 0.659570 seconds (1.02 M allocations: 40.792 MiB, 0.97% gc time)
35+
522.869 ns (0 allocations: 0 bytes)
36+
8.599 μs (21 allocations: 4.88 KiB)
37+
Size(10,10)
38+
Compilation time: 0.968919 seconds (1.53 M allocations: 59.968 MiB, 1.11% gc time)
39+
639.133 ns (0 allocations: 0 bytes)
40+
9.947 μs (21 allocations: 5.81 KiB)
41+
Size(11,11)
42+
Compilation time: 1.398025 seconds (2.22 M allocations: 85.519 MiB, 1.10% gc time)
43+
968.560 ns (0 allocations: 0 bytes)
44+
11.189 μs (21 allocations: 6.94 KiB)
45+
Size(12,12)
46+
Compilation time: 1.910943 seconds (3.15 M allocations: 119.594 MiB, 1.06% gc time)
47+
1.023 μs (0 allocations: 0 bytes)
48+
12.336 μs (21 allocations: 7.88 KiB)
49+
Size(13,13)
50+
Compilation time: 2.775988 seconds (4.39 M allocations: 164.094 MiB, 1.09% gc time)
51+
1.668 μs (0 allocations: 0 bytes)
52+
13.682 μs (21 allocations: 9.28 KiB)
53+
Size(14,14)
54+
Compilation time: 3.626697 seconds (6.01 M allocations: 221.593 MiB, 1.07% gc time)
55+
2.127 μs (0 allocations: 0 bytes)
56+
15.404 μs (21 allocations: 11.16 KiB)
57+
Size(15,15)
58+
Compilation time: 4.943009 seconds (8.09 M allocations: 294.704 MiB, 2.50% gc time)
59+
2.994 μs (0 allocations: 0 bytes)
60+
17.252 μs (21 allocations: 12.47 KiB)
61+
Size(16,16)
62+
Compilation time: 6.496340 seconds (10.99 M allocations: 390.435 MiB, 2.03% gc time)
63+
4.306 μs (0 allocations: 0 bytes)
64+
18.581 μs (21 allocations: 13.31 KiB)
65+
Size(17,17)
66+
Compilation time: 8.676325 seconds (14.40 M allocations: 506.984 MiB, 1.78% gc time)
67+
5.601 μs (0 allocations: 0 bytes)
68+
20.941 μs (21 allocations: 15.19 KiB)
69+
Size(18,18)
70+
Compilation time: 11.178198 seconds (18.62 M allocations: 649.376 MiB, 1.67% gc time)
71+
9.696 μs (0 allocations: 0 bytes)
72+
22.942 μs (21 allocations: 16.69 KiB)
73+
Size(19,19)
74+
Compilation time: 14.343331 seconds (23.80 M allocations: 823.311 MiB, 1.45% gc time)
75+
12.400 μs (0 allocations: 0 bytes)
76+
24.977 μs (21 allocations: 18.56 KiB)
77+
Size(20,20)
78+
Compilation time: 19.905053 seconds (30.08 M allocations: 1.009 GiB, 1.86% gc time)
79+
14.505 μs (0 allocations: 0 bytes)
80+
26.370 μs (21 allocations: 20.06 KiB)
81+
Size(21,21)
82+
Compilation time: 24.492438 seconds (37.63 M allocations: 1.254 GiB, 2.07% gc time)
83+
17.629 μs (0 allocations: 0 bytes)
84+
28.935 μs (21 allocations: 22.31 KiB)
85+
Size(22,22)
86+
Compilation time: 30.472894 seconds (46.62 M allocations: 1.546 GiB, 1.97% gc time)
87+
19.947 μs (0 allocations: 0 bytes)
88+
31.394 μs (21 allocations: 24.19 KiB)

perf/benchmark-qr.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using StaticArrays
2+
using BenchmarkTools, Compat
3+
4+
a = m = 0
5+
for K = 1:22
6+
a = rand(SMatrix{K,K,Float64,K*K})
7+
m = Matrix(a)
8+
print("Size($K,$K)\n Compilation time:")
9+
@time qr(a)
10+
@btime qr($a)
11+
@btime qr($m)
12+
end

0 commit comments

Comments
 (0)