Skip to content

Commit cf0d79a

Browse files
lqdKobzol
authored andcommitted
set up nalgebra benchmark
clean build times - cargo check: 10.2s - cargo build: 10.9s - cargo build --release: 13.6s leaf crate build times: - check full: 4.9s - debug full: 5.4s - opt full: 7.6s
1 parent 61c9528 commit cf0d79a

File tree

7 files changed

+1563
-1
lines changed

7 files changed

+1563
-1
lines changed

collector/compile-benchmarks/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ They mostly consist of real-world crates.
4141
- **libc-0.2.124**: An interface to `libc`. Contains many declarations of
4242
types, constants, and functions, but relatively little normal code. Stresses
4343
the parser. A very widely-used crate.
44+
- **nalgebra-0.33.0**: A linear algebra library. It exercises the new trait solver
45+
in different ways than the old solver.
4446
- **regex-1.5.5**: A regular expression parser. Used by many Rust programs.
4547
- **ripgrep-13.0.0**: A line-oriented search tool. A widely-used utility, and a
4648
binary crate.

collector/compile-benchmarks/REUSE.toml

+5
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ path = "match-stress/**"
155155
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
156156
SPDX-License-Identifier = "MIT"
157157

158+
[[annotations]]
159+
path = "nalgebra-0.33.0/**"
160+
SPDX-FileCopyrightText = "Sébastien Crozet"
161+
SPDX-License-Identifier = "Apache-2.0"
162+
158163
[[annotations]]
159164
path = "piston-image/**"
160165
SPDX-FileCopyrightText = "piston contributors"

collector/compile-benchmarks/nalgebra-0.33.0/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ doc
44
lib
55
TODO
66
target/
7-
Cargo.lock
87
*.orig
98
*.swo
109
site/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/base/matrix.rs b/src/base/matrix.rs
2+
index 6f358a84..6c4eb739 100644
3+
--- a/src/base/matrix.rs
4+
+++ b/src/base/matrix.rs
5+
@@ -225,6 +225,7 @@ where
6+
S: Default,
7+
{
8+
fn default() -> Self {
9+
+ println!("testing");
10+
Matrix {
11+
data: Default::default(),
12+
_phantoms: PhantomData,

0 commit comments

Comments
 (0)