Skip to content

Commit 3d493fc

Browse files
add: matricies for ReduceComparison benchmark, translate errors to English
1 parent 8ae0c1f commit 3d493fc

32 files changed

Lines changed: 3143238 additions & 17 deletions

File tree

‎QuadTree.Benchmark/ReduceComparison.fs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ type Benchmark() =
8181
let parent = Directory.GetParent(dir)
8282

8383
if parent = null then
84-
failwith "Не найден корень проекта (папка data)"
84+
failwith "Project root not found (data directory is missing)"
8585
else
8686
findProjectRoot parent.FullName
8787

@@ -91,15 +91,15 @@ type Benchmark() =
9191
Path.Combine(projectRoot, "data", this.MatrixName, $"{this.MatrixName}.mtx")
9292

9393
if not (File.Exists path) then
94-
failwithf "Файл не найден: %s\nИщем в: %s" path projectRoot
94+
failwithf "File not found: %s\nSearched in: %s" path projectRoot
9595

9696
match QuadTree.Benchmarks.Utils.readMtx path false with
9797
| Ok m ->
9898
this.Matrix <- m
9999
this.Size <- int m.nrows
100100
this.Density <- float m.nvals / (float m.nrows * float m.ncols)
101101
this.IsSymmetric <- this.CheckSymmetric(m)
102-
| Error msg -> failwithf "Не удалось загрузить %s: %s" this.MatrixName msg
102+
| Error msg -> failwithf "Failed to load %s: %s" this.MatrixName msg
103103

104104
[<Benchmark>]
105105
member this.ReduceCols_Original() = Matrix.reduceCols add this.Matrix
Lines changed: 238 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
%%MatrixMarket matrix coordinate real symmetric
2+
%-------------------------------------------------------------------------------
3+
% UF Sparse Matrix Collection, Tim Davis
4+
% http://www.cise.ufl.edu/research/sparse/matrices/HB/bcsstk01
5+
% name: HB/bcsstk01
6+
% [SYMMETRIC STIFFNESS MATRIX SMALL GENERALIZED EIGENVALUE PROBLEM]
7+
% id: 23
8+
% date: 1982
9+
% author: J. Lewis
10+
% ed: I. Duff, R. Grimes, J. Lewis
11+
% fields: title A name id date author ed kind
12+
% kind: structural problem
13+
%-------------------------------------------------------------------------------
14+
48 48 224
15+
1 1 2832268.51852
16+
5 1 1e6
17+
6 1 2083333.33333
18+
7 1 -3333.33333333
19+
11 1 1e6
20+
19 1 -2.8e6
21+
25 1 -28935.1851852
22+
30 1 2083333.33333
23+
2 2 1635447.53086
24+
4 2 -2e6
25+
6 2 5555555.55555
26+
8 2 -6666.66666667
27+
10 2 -2e6
28+
20 2 -30864.1975309
29+
24 2 5555555.55555
30+
26 2 -1597916.66667
31+
3 3 1724367.28395
32+
4 3 -2083333.33333
33+
5 3 -2777777.77778
34+
9 3 -1.68e6
35+
21 3 -15432.0987654
36+
23 3 -2777777.77778
37+
27 3 -28935.1851852
38+
28 3 -2083333.33333
39+
4 4 1003333333.33
40+
8 4 2e6
41+
10 4 4e8
42+
22 4 -3333333.33333
43+
27 4 2083333.33333
44+
28 4 1e8
45+
5 5 1.0675e9
46+
7 5 -1e6
47+
11 5 2e8
48+
21 5 2777777.77778
49+
23 5 333333333.333
50+
29 5 -833333.333333
51+
6 6 1535333333.33
52+
12 6 -2e6
53+
20 6 -5555555.55555
54+
24 6 666666666.667
55+
25 6 -2083333.33333
56+
30 6 1e8
57+
7 7 2832268.51852
58+
11 7 -1e6
59+
12 7 2083333.33333
60+
13 7 -2.8e6
61+
31 7 -28935.1851852
62+
36 7 2083333.33333
63+
8 8 1635447.53086
64+
10 8 2e6
65+
12 8 5555555.55555
66+
14 8 -30864.1975309
67+
18 8 5555555.55555
68+
32 8 -1597916.66667
69+
9 9 1724367.28395
70+
10 9 -2083333.33333
71+
11 9 -2777777.77778
72+
15 9 -15432.0987654
73+
17 9 -2777777.77778
74+
33 9 -28935.1851852
75+
34 9 -2083333.33333
76+
10 10 1003333333.33
77+
16 10 -3333333.33333
78+
33 10 2083333.33333
79+
34 10 1e8
80+
11 11 1.0675e9
81+
15 11 2777777.77778
82+
17 11 333333333.333
83+
35 11 -833333.333333
84+
12 12 1535333333.33
85+
14 12 -5555555.55555
86+
18 12 666666666.667
87+
31 12 -2083333.33333
88+
36 12 1e8
89+
13 13 2836099.4695
90+
17 13 -2149285.29451
91+
18 13 2359161.80402
92+
19 13 -3333.33333333
93+
23 13 -1e6
94+
37 13 -28935.1851852
95+
42 13 2083333.33333
96+
43 13 -3830.95098171
97+
47 13 -1149285.29451
98+
48 13 275828.470683
99+
14 14 1767410.74446
100+
15 14 517922.131816
101+
16 14 4298570.58902
102+
18 14 -5555555.55555
103+
20 14 -6666.66666667
104+
22 14 2e6
105+
38 14 -1597916.66667
106+
44 14 -131963.213599
107+
45 14 -517922.131816
108+
46 14 2298570.58902
109+
15 15 3890038.06848
110+
16 15 -2634990.2747
111+
17 15 2777777.77778
112+
21 15 -1.68e6
113+
39 15 -28935.1851852
114+
40 15 -2083333.33333
115+
44 15 -517922.131816
116+
45 15 -2165670.78453
117+
46 15 -551656.941367
118+
16 16 1975720635.31
119+
20 16 -2e6
120+
22 16 4e8
121+
39 16 2083333.33333
122+
40 16 1e8
123+
44 16 -2298570.58902
124+
45 16 551656.941366
125+
46 16 486193650.99
126+
17 17 1527346515.47
127+
18 17 -109779731.332
128+
19 17 1e6
129+
23 17 2e8
130+
41 17 -833333.333333
131+
43 17 1149285.29451
132+
47 17 229724661.236
133+
48 17 -55717351.0779
134+
18 18 1564111437.11
135+
24 18 -2e6
136+
37 18 -2083333.33333
137+
42 18 1e8
138+
43 18 -275828.470683
139+
47 18 -55717351.0779
140+
48 18 10941196.0038
141+
19 19 2832268.51852
142+
23 19 1e6
143+
24 19 2083333.33333
144+
43 19 -28935.1851852
145+
48 19 2083333.33333
146+
20 20 1635447.53086
147+
22 20 -2e6
148+
24 20 -5555555.55555
149+
44 20 -1597916.66667
150+
21 21 1724367.28395
151+
22 21 -2083333.33333
152+
23 21 2777777.77778
153+
45 21 -28935.1851852
154+
46 21 -2083333.33333
155+
22 22 1003333333.33
156+
45 22 2083333.33333
157+
46 22 1e8
158+
23 23 1.0675e9
159+
47 23 -833333.333333
160+
24 24 1535333333.33
161+
43 24 -2083333.33333
162+
48 24 1e8
163+
25 25 60879.6296296
164+
29 25 1.25e6
165+
30 25 416666.666667
166+
31 25 -4166.66666667
167+
35 25 1.25e6
168+
26 26 3372916.66667
169+
28 26 -2.5e6
170+
32 26 -8333.33333333
171+
34 26 -2.5e6
172+
27 27 2411712.96296
173+
28 27 -416666.666667
174+
33 27 -2.355e6
175+
28 28 1.5e9
176+
32 28 2.5e6
177+
34 28 5e8
178+
29 29 501833333.333
179+
31 29 -1.25e6
180+
35 29 2.5e8
181+
30 30 5.025e8
182+
36 30 -2.5e6
183+
31 31 3985879.62963
184+
35 31 -1.25e6
185+
36 31 416666.666667
186+
37 31 -3.925e6
187+
32 32 3411496.91358
188+
34 32 2.5e6
189+
36 32 6944444.44444
190+
38 32 -38580.2469136
191+
42 32 6944444.44445
192+
33 33 2431003.08642
193+
34 33 -416666.666667
194+
35 33 -3472222.22222
195+
39 33 -19290.1234568
196+
41 33 -3472222.22222
197+
34 34 1504166666.67
198+
40 34 -4166666.66667
199+
35 35 1335166666.67
200+
39 35 3472222.22222
201+
41 35 416666666.667
202+
36 36 2169166666.67
203+
38 36 -6944444.44444
204+
42 36 833333333.333
205+
37 37 3985879.62963
206+
41 37 -1.25e6
207+
42 37 416666.666667
208+
43 37 -4166.66666667
209+
47 37 -1.25e6
210+
38 38 3411496.91358
211+
40 38 2.5e6
212+
42 38 -6944444.44445
213+
44 38 -8333.33333333
214+
46 38 2.5e6
215+
39 39 2431003.08642
216+
40 39 -416666.666667
217+
41 39 3472222.22222
218+
45 39 -2.355e6
219+
40 40 1504166666.67
220+
44 40 -2.5e6
221+
46 40 5e8
222+
41 41 1335166666.67
223+
43 41 1.25e6
224+
47 41 2.5e8
225+
42 42 2169166666.67
226+
48 42 -2.5e6
227+
43 43 64710.5806113
228+
47 43 2399285.29451
229+
48 43 140838.195984
230+
44 44 3504879.88027
231+
45 44 517922.131816
232+
46 44 -4798570.58902
233+
45 45 4577383.74749
234+
46 45 134990.2747
235+
46 46 2472387301.98
236+
47 47 961679848.804
237+
48 47 -109779731.332
238+
48 48 531278103.775

0 commit comments

Comments
 (0)