# Objective This adds a custom profile for testing against stress tests. Bevy seemingly gets notably faster with LTO turned on. To more accurately depict production level performance, LTO and other rustc-level optimizations should be enabled when performance testing on stress tests. Also updated the stress test docs to reflect that users should be using it.
		
			
				
	
	
		
			13 lines
		
	
	
		
			355 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			355 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
# Stress tests
 | 
						|
 | 
						|
These examples are used to stress test Bevy's performance in various ways. These
 | 
						|
should be run with the "stress-test" profile to accurately represent performance
 | 
						|
in production, otherwise they will run in cargo's default "dev" profile which is
 | 
						|
very slow.
 | 
						|
 | 
						|
## Example Command
 | 
						|
 | 
						|
```bash
 | 
						|
cargo run --profile stress-test --example <EXAMPLE>
 | 
						|
```
 |