Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ECS benchmark more representative (bevyengine#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.
- Loading branch information