bevy/benches/benches/bevy_ecs/components
Nicola Papale 359e6c718d
Use single threaded executor for archetype benches (#9835)
# Objective

`no_archetype` benchmark group results were very noisy

## Solution

Use the `SingeThreaded` executor.

On my machine, this makes the `no_archetype` bench group 20 to 30 times
faster. Meaning that most of the runtime was accounted by the
multithreaded scheduler. ie: the benchmark was not testing system
archetype update, but the overhead of multithreaded scheduling.

With this change, the benchmark results are more meaningful.

The add_archetypes function is also simplified.
2023-09-18 16:06:42 +00:00
..
add_remove_big_sparse_set.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
add_remove_big_table.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
add_remove_sparse_set.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
add_remove_table.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
add_remove.rs Remove outdated uses of single-tuple bundles (#6406) 2022-10-29 18:15:28 +00:00
archetype_updates.rs Use single threaded executor for archetype benches (#9835) 2023-09-18 16:06:42 +00:00
insert_simple_unbatched.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
insert_simple.rs ECS benchmarks organization (#5189) 2022-07-04 14:17:45 +00:00
mod.rs ECS benchmarks organization (#5189) 2022-07-04 14:17:45 +00:00