Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Add a stress test profile #6901

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1613,3 +1613,8 @@ inherits = "release"
opt-level = "z"
lto = "fat"
codegen-units = 1

[profile.stress-test]
inherits = "release"
lto = "fat"
panic = "abort"
james7132 marked this conversation as resolved.
Show resolved Hide resolved
9 changes: 8 additions & 1 deletion examples/stress_tests/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Stress tests

These examples are used to stress test Bevy's performance in various ways. These should be run with the --release argument to cargo or equivalent optimization, otherwise they will be very slow.
These examples are used to stress test Bevy's performance in various ways.
These should be run with the "stress-test" profile, otherwise they will be very slow or inaccurately represent production level performance.
james7132 marked this conversation as resolved.
Show resolved Hide resolved

## Example Command

```
cargo run --example <EXAMPLE> --profile stress-test
james7132 marked this conversation as resolved.
Show resolved Hide resolved
```