summaryrefslogtreecommitdiff
path: root/engine-ecs/benches
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-08-17 13:42:16 +0200
committerHampusM <hampus@hampusmat.com>2026-08-17 13:42:16 +0200
commit8cd30420b93eb853e383623d1f726a4d68aa6095 (patch)
treea7b472edf25f740b4f1378df277a5385967b6ed2 /engine-ecs/benches
parent836155f18ea553d8eb437b9d9871ae1a5591eed2 (diff)
chore(engine-ecs): make query benchmark compile again
Diffstat (limited to 'engine-ecs/benches')
-rw-r--r--engine-ecs/benches/query.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine-ecs/benches/query.rs b/engine-ecs/benches/query.rs
index 766ab82..524719d 100644
--- a/engine-ecs/benches/query.rs
+++ b/engine-ecs/benches/query.rs
@@ -120,14 +120,14 @@ fn spawn_1000_entities(world: &mut World)
}
}
-fn benchbark(criterion: &mut Criterion)
+fn benchmark(criterion: &mut Criterion)
{
criterion.bench_function("Iterate 1000 entities", |bencher| {
let mut world = World::new();
spawn_1000_entities(&mut world);
- let query = world.query::<(&Bar, &Position, &Foo), ()>();
+ let query = world.query::<(&Bar, &Position, &Foo)>();
bencher.iter(|| {
for comps in query.iter() {
@@ -137,5 +137,5 @@ fn benchbark(criterion: &mut Criterion)
});
}
-criterion_group!(benches, benchbark);
+criterion_group!(benches, benchmark);
criterion_main!(benches);