@@ -23,10 +23,9 @@ fn exec_chunk(prover: &Prover, wit: &ChunkWitness) -> eyre::Result<(ExecutionRes
23
23
let cycle_count = exec_result. total_cycle as u64 ;
24
24
let cycle_per_gas = cycle_count / stats. total_gas_used ;
25
25
println ! (
26
- "blk {blk}->{}, cycle {cycle_count}, gas {}, cycle-per-gas {cycle_per_gas}, tick-per-gas {} " ,
26
+ "blk {blk}->{}, cycle {cycle_count}, gas {}, cycle-per-gas {cycle_per_gas}" ,
27
27
wit. blocks. last( ) . unwrap( ) . header. number,
28
28
stats. total_gas_used,
29
- exec_result. total_tick as u64 / stats. total_gas_used,
30
29
) ;
31
30
Ok ( ( exec_result, stats. total_gas_used ) )
32
31
}
@@ -140,30 +139,27 @@ fn test_execute_multi() -> eyre::Result<()> {
140
139
. build ( )
141
140
. unwrap ( ) ;
142
141
// Execute tasks in parallel
143
- let ( total_gas, total_cycle, total_tick ) = pool. install ( || {
142
+ let ( total_gas, total_cycle) = pool. install ( || {
144
143
// comment by [email protected] : why we need to load prover multiple times (which is time costing)
145
144
let prover = ChunkProverTester :: load_prover ( false ) . unwrap ( ) ;
146
- let init = ( 0u64 , 0u64 , 0u64 ) ;
147
- let adder = |( gas1, cycle1, tick1) : ( u64 , u64 , u64 ) ,
148
- ( gas2, cycle2, tick2) : ( u64 , u64 , u64 ) | {
149
- ( gas1 + gas2, cycle1 + cycle2, tick1 + tick2)
150
- } ;
145
+ let init = ( 0u64 , 0u64 ) ;
146
+ let adder =
147
+ |( gas1, cycle1) : ( u64 , u64 ) , ( gas2, cycle2) : ( u64 , u64 ) | ( gas1 + gas2, cycle1 + cycle2) ;
151
148
preset_chunk_multiple ( )
152
149
. into_iter ( )
153
- . map ( |task| -> ( u64 , u64 , u64 ) {
150
+ . map ( |task| -> ( u64 , u64 ) {
154
151
let ( exec_result, gas) =
155
152
exec_chunk ( & prover, & task. gen_proving_witnesses ( ) . unwrap ( ) ) . unwrap ( ) ;
156
- ( gas, exec_result. total_cycle , exec_result . total_tick )
153
+ ( gas, exec_result. total_cycle )
157
154
} )
158
155
. fold ( init, adder)
159
156
} ) ;
160
157
161
158
println ! (
162
- "Total gas: {}, Total cycles: {}, Average cycle/gas: {}, Average tick/gas: {} " ,
159
+ "Total gas: {}, Total cycles: {}, Average cycle/gas: {}" ,
163
160
total_gas,
164
161
total_cycle,
165
162
total_cycle as f64 / total_gas as f64 ,
166
- total_tick as f64 / total_gas as f64 ,
167
163
) ;
168
164
169
165
Ok ( ( ) )
0 commit comments