bevy/benches/benches/bevy_ecs
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
..
commands.rs Renamed Entity::new to Entity::from_raw (#3465) 2021-12-29 20:49:00 +00:00
stages.rs Implement and require #[derive(Component)] on all component structs (#2254) 2021-10-03 19:23:44 +00:00
world_get.rs Make ECS benchmark more representative (#2941) 2022-02-03 22:34:29 +00:00