File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -137,9 +137,9 @@ The performance of trait queries is quite competitive. Here are some benchmarks
137
137
138
138
| | Concrete type | One<dyn Trait > | All<dyn Trait > |
139
139
| -------------------| ----------------| -------------------| -----------------|
140
- | 1 match | 16.135 µs | 31.441 µs | 63.273 µs |
141
- | 2 matches | 17.501 µs | - | 102.83 µs |
142
- | 1-2 matches | - | 16.959 µs | 82.179 µs |
140
+ | 1 match | 8.395 µs | 28.174 µs | 81.027 µs |
141
+ | 2 matches | 8.473 µs | - | 106.47 µs |
142
+ | 1-2 matches | - | 14.619 µs | 92.876 µs |
143
143
144
144
<!-- cargo-rdme end -->
145
145
Original file line number Diff line number Diff line change 245
245
//!
246
246
//! The performance of trait queries is quite competitive. Here are some benchmarks for simple cases:
247
247
//!
248
- //! | | Concrete type | One<dyn Trait> | All<dyn Trait> |
248
+ //! | | Concrete type | One<dyn Trait> | All<dyn Trait> |
249
249
//! |-------------------|----------------|-------------------|-----------------|
250
- //! | 1 match | 16.135 µs | 31.441 µs | 63.273 µs |
251
- //! | 2 matches | 17.501 µs | - | 102.83 µs |
252
- //! | 1-2 matches | - | 16.959 µs | 82.179 µs |
250
+ //! | 1 match | 8.395 µs | 28.174 µs | 81.027 µs |
251
+ //! | 2 matches | 8.473 µs | - | 106.47 µs |
252
+ //! | 1-2 matches | - | 14.619 µs | 92.876 µs |
253
253
//!
254
254
255
255
use bevy_ecs:: {
You can’t perform that action at this time.
0 commit comments