Skip to content

Commit 5177def

Browse files
committed
add diesel-1.4.8 benchmark scaffolding
- empty [workspace] - readme - perf-config.json: `diesel` used to be a workspace with members, but we don't need to configure it in a special way now - incremental patch
1 parent d707f59 commit 5177def

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

collector/benchmarks/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ They mostly consist of real-world crates.
3232
ensure a lot of invariants. Stresses anything related to resolving
3333
trait bounds, by having a lot of trait impls for a large number of different
3434
types.
35+
- **diesel-1.4.8**: A type safe SQL query builder. Utilizes the type system to
36+
ensure a lot of invariants. Stresses anything related to resolving
37+
trait bounds, by having a lot of trait impls for a large number of different
38+
types.
3539
- **helloworld**: A trivial program. Gives a lower bound on compile time.
3640
- **html5ever**: An HTML parser. Stresses macro parsing code significantly.
3741
- **hyper-2**: A fairly large crate. Utilizes async/await, and used by
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/query_dsl/mod.rs b/src/query_dsl/mod.rs
2+
index 68c1cf74..1dcd513d 100644
3+
--- a/src/query_dsl/mod.rs
4+
+++ b/src/query_dsl/mod.rs
5+
@@ -112,6 +112,7 @@ pub trait QueryDsl: Sized {
6+
where
7+
Self: methods::DistinctDsl,
8+
{
9+
+ println!("testing");
10+
methods::DistinctDsl::distinct(self)
11+
}
12+

collector/benchmarks/diesel-1.4.8/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,5 @@ with-deprecated = []
136136
x128-column-tables = ["128-column-tables"]
137137
x32-column-tables = ["32-column-tables"]
138138
x64-column-tables = ["64-column-tables"]
139+
140+
[workspace]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"category": "primary"
3+
}

0 commit comments

Comments
 (0)