Skip to content

Commit 6a4e05c

Browse files
committed
Add extra pieces.
1 parent b400852 commit 6a4e05c

File tree

5 files changed

+31
-3
lines changed

5 files changed

+31
-3
lines changed

collector/compile-benchmarks/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ compiler in interesting ways.
122122
regression](https://github.com/rust-lang/rust/issues/31157) from the past.
123123
- **ripgrep-13.0.0-tiny**: A line-oriented search tool, optimized with flags that should reduce
124124
binary size.
125+
- **ripgrep-14.1.1-tiny**: A line-oriented search tool, optimized with flags
126+
that should reduce binary size.
125127
- **token-stream-stress**: A proc-macro crate. Constructs a long token stream
126128
much like the `quote` crate does, which caused [quadratic
127129
behavior](https://github.com/rust-lang/rust/issues/65080) in the past.

collector/compile-benchmarks/REUSE.toml

+5
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ path = "ripgrep-14.1.1/**"
215215
SPDX-FileCopyrightText = "ripgrep contributors"
216216
SPDX-License-Identifier = "MIT OR Unlicense"
217217

218+
[[annotations]]
219+
path = "ripgrep-14.1.1-tiny/**"
220+
SPDX-FileCopyrightText = "ripgrep contributors"
221+
SPDX-License-Identifier = "MIT OR Unlicense"
222+
218223
[[annotations]]
219224
path = "serde-1.0.136/**"
220225
SPDX-FileCopyrightText = "serde contributors"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/crates/core/search.rs b/crates/core/search.rs
2+
index 67273425..4794ab49 100644
3+
--- a/crates/core/search.rs
4+
+++ b/crates/core/search.rs
5+
@@ -340,6 +340,7 @@ impl<W: WriteColor> SearchWorker<W> {
6+
fn search_path(&mut self, path: &Path) -> io::Result<SearchResult> {
7+
use self::PatternMatcher::*;
8+
9+
+ println!("testing");
10+
let (searcher, printer) = (&mut self.searcher, &mut self.printer);
11+
match self.matcher {
12+
RustRegex(ref m) => search_path(m, searcher, printer, path),

collector/compile-benchmarks/ripgrep-14.1.1-tiny/Cargo.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ debug = 0
121121
inherits = "release"
122122

123123
[profile.release]
124-
debug = 1
124+
opt-level = "z"
125+
lto = true
126+
codegen-units = 1
127+
panic = "abort"
128+
strip = true
125129

126130
[profile.release-lto]
127131
opt-level = 3
@@ -186,3 +190,5 @@ pcre2 = ["grep/pcre2"]
186190

187191
[target.'cfg(all(target_env = "musl", target_pointer_width = "64"))'.dependencies.jemallocator]
188192
version = "0.5.0"
193+
194+
[workspace]
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2-
"artifact": "binary",
3-
"category": "primary"
2+
"touch_file": "crates/core/main.rs",
3+
"category": "secondary",
4+
"excluded_profiles": ["Doc", "Check", "Debug"],
5+
"excluded_scenarios": ["IncrFull", "IncrPatched", "IncrUnchanged"],
6+
"artifact": "binary"
47
}

0 commit comments

Comments
 (0)