Skip to content

Commit a7ea2e3

Browse files
committed
README update
1 parent 8cc9737 commit a7ea2e3

File tree

1 file changed

+75
-27
lines changed

1 file changed

+75
-27
lines changed

README.md

Lines changed: 75 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,51 +20,99 @@ julia> N = 100;
2020

2121
julia> A = rand(N,N); B = rand(N,N); C = similar(A);
2222

23-
julia> @benchmark TriangularSolve.rdiv!($C, $A, UpperTriangular($B), Val(false)) # false means single threaded
23+
julia> @benchmark TriangularSolve.rdiv!(copyto!($C, $A), UpperTriangular($B), Val(false)) # false means single threaded
2424
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
25-
Range (min max): 15.909 μs 41.524 μs ┊ GC (min max): 0.00% 0.00%
26-
Time (median): 17.916 μs ┊ GC (median): 0.00%
27-
Time (mean ± σ): 17.751 μs ± 697.786 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
25+
Range (min max): 12.106 μs 108.141 μs ┊ GC (min max): 0.00% 0.00%
26+
Time (median): 12.841 μs ┊ GC (median): 0.00%
27+
Time (mean ± σ): 12.862 μs ± 1.585 μs ┊ GC (mean ± σ): 0.00% ± 0.00%
2828

29-
▃▁ ▄▁ ▇▆ ▆█▃
30-
██▃▁▁██▁▁▁▁█▆▁▁▃▇██▄▃▁███▆▁▄▄███▄▄▅▅▆▇█▇▄▅▆▇██▇█▇▇▆▄▅▄▁▄▁▄▄▇ █
31-
15.9 μs Histogram: log(frequency) by time 19.9 μs <
29+
30+
▃█▆▂▁▁▁▁▂▃▇▄▂▂▇▄▂▂▂▃▃▃▂▂▂▃▃▂▂▂▂▁▁▁▁▂▂▁▁▂▂▂▂▂▂▂▂▂▂▂▂▁▂▂▂▂▂▂▂▂ ▂
31+
12.1 μs Histogram: frequency by time 16.6 μs <
3232

3333
Memory estimate: 0 bytes, allocs estimate: 0.
3434

3535
julia> @benchmark rdiv!(copyto!($C, $A), UpperTriangular($B))
3636
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
37-
Range (min max): 17.578 μs 75.835 μs ┊ GC (min max): 0.00% 0.00%
38-
Time (median): 19.852 μs ┊ GC (median): 0.00%
39-
Time (mean ± σ): 19.827 μs ± 1.342 μs ┊ GC (mean ± σ): 0.00% ± 0.00%
37+
Range (min max): 13.483 μs 31.165 μs ┊ GC (min max): 0.00% 0.00%
38+
Time (median): 13.698 μs ┊ GC (median): 0.00%
39+
Time (mean ± σ): 13.816 μs ± 791.937 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
4040

41-
▄▂ ▆▅ ▁█▇▂ ▅▃
42-
██▁▁▃█▇▁▁▁█▇▄▄▁██▇▄▄▄██▆▅▄████▅▄▆██▆▆▆▆▇██▇▇▆▆▇▆▅▆▄▅▅▆▄▅▄▅▅
43-
17.6 μs Histogram: log(frequency) by time 22.4 μs <
41+
▃▆██▅ ▃▄▃
42+
▆██████▄▃▁▁▃▁▁▇████▃▃▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▅▄▁▄▆▇▆▆
43+
13.5 μs Histogram: log(frequency) by time 16.8 μs <
4444

4545
Memory estimate: 0 bytes, allocs estimate: 0.
4646

47-
julia> @benchmark ldiv!($C, LowerTriangular($B), $A)
47+
julia> @benchmark TriangularSolve.rdiv!(copyto!($C, $A), LowerTriangular($B), Val(false)) # false means single threaded
4848
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
49-
Range (min max): 19.102 μs 69.966 μs ┊ GC (min max): 0.00% 0.00%
50-
Time (median): 21.561 μs ┊ GC (median): 0.00%
51-
Time (mean ± σ): 21.565 μs ± 890.952 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
49+
Range (min max): 12.990 μs 35.762 μs ┊ GC (min max): 0.00% 0.00%
50+
Time (median): 13.094 μs ┊ GC (median): 0.00%
51+
Time (mean ± σ): 13.170 μs ± 636.637 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
5252

53-
▂▂ ▂▃ ▄▄ ▆█▄ ▅▅
54-
██▃▁▁▁▇█▁▁▁▁▅█▁▁▁▁▁██▅▁▁▁▅██▆▁▁▁▆███▆▅▃▅████▃▄▅██▇▇▅▆▆▇▇█▇▆▆
55-
19.1 μs Histogram: log(frequency) by time 23.4 μs <
53+
▄██▅ ▂▂
54+
████▆▄▃▁▁▁▁▁▁▄███▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▄▅▄▅▅▇
55+
13 μs Histogram: log(frequency) by time 16 μs <
5656

5757
Memory estimate: 0 bytes, allocs estimate: 0.
5858

59-
julia> @benchmark TriangularSolve.ldiv!($C, LowerTriangular($B), $A, Val(false)) # false means single threaded
59+
julia> @benchmark rdiv!(copyto!($C, $A), LowerTriangular($B))
60+
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
61+
Range (min max): 14.119 μs 32.767 μs ┊ GC (min max): 0.00% 0.00%
62+
Time (median): 14.321 μs ┊ GC (median): 0.00%
63+
Time (mean ± σ): 14.372 μs ± 461.912 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
64+
65+
▂█▆
66+
▂▄███▇▃▂▂▂▁▁▂▁▂▂▂▂▂▂▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▂▂▂▂▂▂ ▂
67+
14.1 μs Histogram: frequency by time 17.3 μs <
68+
69+
Memory estimate: 0 bytes, allocs estimate: 0.
70+
71+
julia> @benchmark TriangularSolve.ldiv!(LowerTriangular($B), copyto!($C, $A), Val(false)) # false means single threaded
72+
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
73+
Range (min max): 16.579 μs 38.431 μs ┊ GC (min max): 0.00% 0.00%
74+
Time (median): 16.728 μs ┊ GC (median): 0.00%
75+
Time (mean ± σ): 16.812 μs ± 640.766 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
76+
77+
▁▅██▅ ▁▂▁ ▂
78+
█████▇▃▁▁▁▁▁▁▁▁▁▁▁▄███▅▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▅▃▅▃▅▇█ █
79+
16.6 μs Histogram: log(frequency) by time 19.6 μs <
80+
81+
Memory estimate: 0 bytes, allocs estimate: 0.
82+
83+
julia> @benchmark ldiv!(LowerTriangular($B), copyto!($C, $A))
84+
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
85+
Range (min max): 15.763 μs 38.550 μs ┊ GC (min max): 0.00% 0.00%
86+
Time (median): 15.936 μs ┊ GC (median): 0.00%
87+
Time (mean ± σ): 16.351 μs ± 1.103 μs ┊ GC (mean ± σ): 0.00% ± 0.00%
88+
89+
▃▇█▆ ▁▅▆▄ ▂▄▅▃ ▁▂▁ ▂
90+
█████▄▄▁▁▁▃▁▄████▆▁▅████▆▁▃▆███▅▃▁▁▁▁▁▁▁▁▁▁▁▁▄▃▄▅▆▇█▆▅▆▅▅▆▄ █
91+
15.8 μs Histogram: log(frequency) by time 19.5 μs <
92+
93+
Memory estimate: 0 bytes, allocs estimate: 0.
94+
95+
julia> @benchmark TriangularSolve.ldiv!(UpperTriangular($B), copyto!($C, $A), Val(false)) # false means single threaded
96+
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
97+
Range (min max): 15.921 μs 34.610 μs ┊ GC (min max): 0.00% 0.00%
98+
Time (median): 16.180 μs ┊ GC (median): 0.00%
99+
Time (mean ± σ): 16.290 μs ± 733.446 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
100+
101+
▅██▃ ▂▃▁ ▂
102+
▇█▆████▅▄▁▁▁▁▁▁▁▃▁▅███▄▁▁▁▁▄▇█▄▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▆▅▄▃▇█ █
103+
15.9 μs Histogram: log(frequency) by time 19.1 μs <
104+
105+
Memory estimate: 0 bytes, allocs estimate: 0.
106+
107+
julia> @benchmark ldiv!(UpperTriangular($B), copyto!($C, $A))
60108
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
61-
Range (min max): 19.082 μs 39.078 μs ┊ GC (min max): 0.00% 0.00%
62-
Time (median): 19.694 μs ┊ GC (median): 0.00%
63-
Time (mean ± σ): 19.765 μs ± 774.848 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
109+
Range (min max): 15.085 μs 37.057 μs ┊ GC (min max): 0.00% 0.00%
110+
Time (median): 15.274 μs ┊ GC (median): 0.00%
111+
Time (mean ± σ): 15.373 μs ± 733.025 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
64112

65-
▄█
66-
▂▇██▄▂▁▁▂▂▃███▃▂▁▂▁▂▂▅█▇▃▂▂▂▁▂▂▂▂▂▂▂▁▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▁▁▂▂▂ ▃
67-
19.1 μs Histogram: frequency by time 22.1 μs <
113+
▄▇█▇▄ ▃▂
114+
██████▇▃▁▃▁▁▃▁▁▅████▄▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▄▆▃▅▅▆█ █
115+
15.1 μs Histogram: log(frequency) by time 18.3 μs <
68116

69117
Memory estimate: 0 bytes, allocs estimate: 0.
70118
```

0 commit comments

Comments
 (0)