Skip to content

Commit eeb1a9d

Browse files
authored
Add Benchmarks (gfx-rs#5694)
1 parent 3a79885 commit eeb1a9d

25 files changed

+1672
-378
lines changed

.config/nextest.toml

+12-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@
33
[profile.default]
44
slow-timeout = { period = "45s", terminate-after = 2 }
55

6-
# Use two threads for tests with "2_threads" in their name
6+
# Use two threads for tests with "2 threads" in their name
77
[[profile.default.overrides]]
8-
filter = 'test(~2_threads)'
8+
filter = 'test(~2_threads) | test(~2 threads)'
99
threads-required = 2
10+
11+
# Use four threads for tests with "4 threads" in their name
12+
[[profile.default.overrides]]
13+
filter = 'test(~4_threads) | test(~4 threads)'
14+
threads-required = 4
15+
16+
# Use eight threads for tests with "8 threads" in their name
17+
[[profile.default.overrides]]
18+
filter = 'test(~8_threads) | test(~8 threads)'
19+
threads-required = 8

.deny.toml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[bans]
22
multiple-versions = "deny"
33
skip-tree = [
4+
# We never enable loom in any of our dependencies but it causes dupes
5+
{ name = "loom", version = "0.7.2" },
46
{ name = "windows-sys", version = "0.45" },
57
{ name = "winit", version = "0.27" },
68
{ name = "winit", version = "0.29" },

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ jobs:
226226
cargo clippy --target ${{ matrix.target }} --no-default-features
227227
228228
# Check with all features.
229-
cargo clippy --target ${{ matrix.target }} --tests --all-features
229+
cargo clippy --target ${{ matrix.target }} --tests --benches --all-features
230230
231231
# build docs
232232
cargo +${{ env.DOCS_RUST_VERSION }} doc --target ${{ matrix.target }} --all-features --no-deps

Cargo.lock

+196-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)