bevy/benches
Daniel McNab 6ac9d6876f Make ECS benchmark more representative (#2941)
# Objective

- The addition was being optimised out in the `for_each` loop, but not the `for` loop
- Previously this meant that the `for_each` loop looked 3 times as fast - it's actually only 2 times as fast
- Effectively, the addition take one unit of time, the for_each takes one unit of time, and the for loop version takes two units of time. 

## Solution

- `black_box` the count in each loop

Note that this does not fix `for_each` being faster than `for`, unfortunately.
2022-02-03 22:34:29 +00:00
..
benches Make ECS benchmark more representative (#2941) 2022-02-03 22:34:29 +00:00
Cargo.toml Add readme to errors crate and clean up cargo files (#3125) 2021-11-13 23:06:48 +00:00