Skip to content

Commit 76ba347

Browse files
authored
Separate bench (#234)
Signed-off-by: GitHub <[email protected]>
1 parent a6cb99e commit 76ba347

File tree

7 files changed

+35
-12
lines changed

7 files changed

+35
-12
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
- uses: actions/checkout@v3
1111
- uses: boa-dev/criterion-compare-action@v3
1212
with:
13-
cwd: "typed_floats"
13+
cwd: "benchmarks"
1414
branchName: ${{ github.base_ref }}
1515
token: ${{ secrets.GITHUB_TOKEN }}

Cargo.lock

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
members = ["xtask", "typed_floats", "typed_floats_macros"]
2+
members = ["xtask", "typed_floats", "typed_floats_macros", "benchmarks"]
33
resolver = "2"
44

55
[workspace.package]

benchmarks/Cargo.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
name = "benchmarks"
3+
version.workspace = true
4+
edition.workspace = true
5+
license.workspace = true
6+
repository.workspace = true
7+
rust-version.workspace = true
8+
9+
[dev-dependencies]
10+
criterion = "0.3"
11+
12+
[dev-dependencies.typed_floats]
13+
path = "../typed_floats"
14+
15+
[lib]
16+
# Benchmarks are handleled by Criterion
17+
bench = false
18+
19+
[[bench]]
20+
name = "criterion"
21+
harness = false
File renamed without changes.

benchmarks/src/lib.rs

Whitespace-only changes.

typed_floats/Cargo.toml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ categories.workspace = true
1616
readme = "./README.md"
1717
rust-version.workspace = true
1818

19+
[lib]
20+
# Benchmarks are handleled by Criterion
21+
bench = false
22+
1923
[features]
2024
default = ["std", "compiler_hints"]
2125
# follows each debug_assert! with core::hint::unreachable_unchecked
@@ -56,15 +60,6 @@ version = "0.4.11"
5660
[dev-dependencies]
5761
serde_json = { version = "1.0" }
5862
num-traits = "0.2"
59-
criterion = "0.3"
60-
61-
[lib]
62-
# Benchmarks are handleled by Criterion
63-
bench = false
64-
65-
[[bench]]
66-
name = "criterion"
67-
harness = false
6863

6964
[package.metadata.docs.rs]
7065
features = ["serde"]

0 commit comments

Comments
 (0)