Skip to content

Commit cb946f3

Browse files
committed
feat: Add matrix multiplication benchmark.
1 parent 2faebf4 commit cb946f3

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

benchmarks/macro/matrix_mul.prox

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
func create_matrix(rows, cols) {
3-
print("Creating matrix " + to_string(rows) + "x" + to_string(cols));
43
let m = [];
54
for (let i = 0; i < rows; i = i + 1) {
65
let row = [];
@@ -9,7 +8,6 @@ func create_matrix(rows, cols) {
98
}
109
list_push(m, row);
1110
}
12-
print("Matrix created with " + to_string(len(m)) + " rows");
1311
return m;
1412
}
1513

@@ -53,13 +51,7 @@ func main() {
5351
let elapsed = clock() - start;
5452

5553
print("Time: " + to_string(elapsed));
56-
if (c == null) {
57-
print("C is null");
58-
} else {
59-
print("Rows: " + to_string(len(c)));
60-
if (len(c) > 0) print("Cols: " + to_string(len(c[0])));
61-
print("C[0][0]: " + to_string(c[0][0]));
62-
}
54+
print("C[0][0]: " + to_string(c[0][0]));
6355
}
6456

6557
main();

0 commit comments

Comments
 (0)