@@ -10,7 +10,7 @@ extern crate criterion;
1010
1111mod common;
1212
13- use akd:: append_only_zks:: InsertMode ;
13+ use akd:: append_only_zks:: { AzksParallelismConfig , InsertMode } ;
1414use akd:: auditor;
1515use akd:: storage:: manager:: StorageManager ;
1616use akd:: storage:: memory:: AsyncInMemoryDatabase ;
@@ -57,6 +57,7 @@ fn batch_insertion<TC: NamedConfiguration>(c: &mut Criterion) {
5757 & db,
5858 initial_node_set. clone ( ) ,
5959 InsertMode :: Directory ,
60+ AzksParallelismConfig :: default ( ) ,
6061 ) )
6162 . unwrap ( ) ;
6263 ( azks, db, node_set. clone ( ) )
@@ -67,6 +68,7 @@ fn batch_insertion<TC: NamedConfiguration>(c: &mut Criterion) {
6768 & db,
6869 node_set,
6970 InsertMode :: Directory ,
71+ AzksParallelismConfig :: default ( ) ,
7072 ) )
7173 . unwrap ( ) ;
7274 } ,
@@ -107,6 +109,7 @@ fn audit_verify<TC: NamedConfiguration>(c: &mut Criterion) {
107109 & db,
108110 initial_node_set. clone ( ) ,
109111 InsertMode :: Directory ,
112+ AzksParallelismConfig :: default ( ) ,
110113 ) )
111114 . unwrap ( ) ;
112115
@@ -118,12 +121,18 @@ fn audit_verify<TC: NamedConfiguration>(c: &mut Criterion) {
118121 & db,
119122 node_set. clone ( ) ,
120123 InsertMode :: Directory ,
124+ AzksParallelismConfig :: default ( ) ,
121125 ) )
122126 . unwrap ( ) ;
123127
124128 let end_hash = runtime. block_on ( azks. get_root_hash :: < TC , _ > ( & db) ) . unwrap ( ) ;
125129 let proof = runtime
126- . block_on ( azks. get_append_only_proof :: < TC , _ > ( & db, 1 , 2 ) )
130+ . block_on ( azks. get_append_only_proof :: < TC , _ > (
131+ & db,
132+ 1 ,
133+ 2 ,
134+ AzksParallelismConfig :: default ( ) ,
135+ ) )
127136 . unwrap ( ) ;
128137
129138 ( start_hash, end_hash, proof)
@@ -157,7 +166,12 @@ fn audit_generate<TC: NamedConfiguration>(c: &mut Criterion) {
157166 for _epoch in 0 ..num_epochs {
158167 let node_set = gen_nodes ( & mut rng, num_leaves) ;
159168 runtime
160- . block_on ( azks. batch_insert_nodes :: < TC , _ > ( & db, node_set, InsertMode :: Directory ) )
169+ . block_on ( azks. batch_insert_nodes :: < TC , _ > (
170+ & db,
171+ node_set,
172+ InsertMode :: Directory ,
173+ AzksParallelismConfig :: default ( ) ,
174+ ) )
161175 . unwrap ( ) ;
162176 }
163177 let epoch = azks. get_latest_epoch ( ) ;
@@ -172,7 +186,12 @@ fn audit_generate<TC: NamedConfiguration>(c: &mut Criterion) {
172186 || { } ,
173187 |_| {
174188 let _proof = runtime
175- . block_on ( azks. get_append_only_proof :: < TC , _ > ( & db, epoch - 1 , epoch) )
189+ . block_on ( azks. get_append_only_proof :: < TC , _ > (
190+ & db,
191+ epoch - 1 ,
192+ epoch,
193+ AzksParallelismConfig :: default ( ) ,
194+ ) )
176195 . unwrap ( ) ;
177196 } ,
178197 BatchSize :: PerIteration ,
0 commit comments