@@ -15,6 +15,10 @@ fn bench_simple_insert(c: &mut Criterion) {
1515 let mut bench = bevy:: simple_insert:: Benchmark :: new ( ) ;
1616 b. iter ( move || bench. run ( ) ) ;
1717 } ) ;
18+ group. bench_function ( "hecs" , |b| {
19+ let mut bench = hecs:: simple_insert:: Benchmark :: new ( ) ;
20+ b. iter ( move || bench. run ( ) ) ;
21+ } ) ;
1822 group. bench_function ( "shipyard" , |b| {
1923 let mut bench = shipyard:: simple_insert:: Benchmark :: new ( ) ;
2024 b. iter ( move || bench. run ( ) ) ;
@@ -39,6 +43,10 @@ fn bench_simple_iter(c: &mut Criterion) {
3943 let mut bench = bevy:: simple_iter:: Benchmark :: new ( ) ;
4044 b. iter ( move || bench. run ( ) ) ;
4145 } ) ;
46+ group. bench_function ( "hecs" , |b| {
47+ let mut bench = hecs:: simple_iter:: Benchmark :: new ( ) ;
48+ b. iter ( move || bench. run ( ) ) ;
49+ } ) ;
4250 group. bench_function ( "shipyard" , |b| {
4351 let mut bench = shipyard:: simple_iter:: Benchmark :: new ( ) ;
4452 b. iter ( move || bench. run ( ) ) ;
@@ -63,6 +71,10 @@ fn bench_frag_iter_bc(c: &mut Criterion) {
6371 let mut bench = bevy:: frag_iter:: Benchmark :: new ( ) ;
6472 b. iter ( move || bench. run ( ) ) ;
6573 } ) ;
74+ group. bench_function ( "hecs" , |b| {
75+ let mut bench = hecs:: frag_iter:: Benchmark :: new ( ) ;
76+ b. iter ( move || bench. run ( ) ) ;
77+ } ) ;
6678 group. bench_function ( "shipyard" , |b| {
6779 let mut bench = shipyard:: frag_iter:: Benchmark :: new ( ) ;
6880 b. iter ( move || bench. run ( ) ) ;
@@ -115,6 +127,10 @@ fn bench_heavy_compute(c: &mut Criterion) {
115127 let mut bench = bevy:: heavy_compute:: Benchmark :: new ( ) ;
116128 b. iter ( move || bench. run ( ) ) ;
117129 } ) ;
130+ group. bench_function ( "hecs" , |b| {
131+ let mut bench = hecs:: heavy_compute:: Benchmark :: new ( ) ;
132+ b. iter ( move || bench. run ( ) ) ;
133+ } ) ;
118134 group. bench_function ( "shipyard" , |b| {
119135 let mut bench = shipyard:: heavy_compute:: Benchmark :: new ( ) ;
120136 b. iter ( move || bench. run ( ) ) ;
@@ -135,6 +151,10 @@ fn bench_add_remove(c: &mut Criterion) {
135151 let mut bench = legion_2_4:: add_remove:: Benchmark :: new ( ) ;
136152 b. iter ( move || bench. run ( ) ) ;
137153 } ) ;
154+ group. bench_function ( "hecs" , |b| {
155+ let mut bench = hecs:: add_remove:: Benchmark :: new ( ) ;
156+ b. iter ( move || bench. run ( ) ) ;
157+ } ) ;
138158 group. bench_function ( "shipyard" , |b| {
139159 let mut bench = shipyard:: add_remove:: Benchmark :: new ( ) ;
140160 b. iter ( move || bench. run ( ) ) ;
0 commit comments