@@ -27,6 +27,10 @@ fn bench_simple_iter(c: &mut Criterion) {
2727 let mut bench = legion:: simple_iter:: Benchmark :: new ( ) ;
2828 b. iter ( move || bench. run ( ) ) ;
2929 } ) ;
30+ group. bench_function ( "legion (packed)" , |b| {
31+ let mut bench = legion_packed:: simple_iter:: Benchmark :: new ( ) ;
32+ b. iter ( move || bench. run ( ) ) ;
33+ } ) ;
3034 group. bench_function ( "legion_0.2.4" , |b| {
3135 let mut bench = legion_2_4:: simple_iter:: Benchmark :: new ( ) ;
3236 b. iter ( move || bench. run ( ) ) ;
@@ -39,6 +43,10 @@ fn bench_simple_iter(c: &mut Criterion) {
3943 let mut bench = shipyard:: simple_iter:: Benchmark :: new ( ) ;
4044 b. iter ( move || bench. run ( ) ) ;
4145 } ) ;
46+ group. bench_function ( "shipyard (packed)" , |b| {
47+ let mut bench = shipyard_packed:: simple_iter:: Benchmark :: new ( ) ;
48+ b. iter ( move || bench. run ( ) ) ;
49+ } ) ;
4250}
4351
4452fn bench_frag_iter_bc ( c : & mut Criterion ) {
@@ -67,6 +75,10 @@ fn bench_schedule(c: &mut Criterion) {
6775 let mut bench = legion:: schedule:: Benchmark :: new ( ) ;
6876 b. iter ( move || bench. run ( ) ) ;
6977 } ) ;
78+ group. bench_function ( "legion (packed)" , |b| {
79+ let mut bench = legion_packed:: schedule:: Benchmark :: new ( ) ;
80+ b. iter ( move || bench. run ( ) ) ;
81+ } ) ;
7082 group. bench_function ( "legion_0.2.4" , |b| {
7183 let mut bench = legion_2_4:: schedule:: Benchmark :: new ( ) ;
7284 b. iter ( move || bench. run ( ) ) ;
@@ -79,6 +91,10 @@ fn bench_schedule(c: &mut Criterion) {
7991 let mut bench = shipyard:: schedule:: Benchmark :: new ( ) ;
8092 b. iter ( move || bench. run ( ) ) ;
8193 } ) ;
94+ group. bench_function ( "shipyard (packed)" , |b| {
95+ let mut bench = shipyard_packed:: schedule:: Benchmark :: new ( ) ;
96+ b. iter ( move || bench. run ( ) ) ;
97+ } ) ;
8298}
8399
84100fn bench_heavy_compute ( c : & mut Criterion ) {
@@ -87,6 +103,10 @@ fn bench_heavy_compute(c: &mut Criterion) {
87103 let mut bench = legion:: heavy_compute:: Benchmark :: new ( ) ;
88104 b. iter ( move || bench. run ( ) ) ;
89105 } ) ;
106+ group. bench_function ( "legion (packed)" , |b| {
107+ let mut bench = legion_packed:: heavy_compute:: Benchmark :: new ( ) ;
108+ b. iter ( move || bench. run ( ) ) ;
109+ } ) ;
90110 group. bench_function ( "legion_0.2.4" , |b| {
91111 let mut bench = legion_2_4:: heavy_compute:: Benchmark :: new ( ) ;
92112 b. iter ( move || bench. run ( ) ) ;
@@ -99,6 +119,10 @@ fn bench_heavy_compute(c: &mut Criterion) {
99119 let mut bench = shipyard:: heavy_compute:: Benchmark :: new ( ) ;
100120 b. iter ( move || bench. run ( ) ) ;
101121 } ) ;
122+ group. bench_function ( "shipyard (packed)" , |b| {
123+ let mut bench = shipyard_packed:: heavy_compute:: Benchmark :: new ( ) ;
124+ b. iter ( move || bench. run ( ) ) ;
125+ } ) ;
102126}
103127
104128fn bench_add_remove ( c : & mut Criterion ) {
0 commit comments