File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
mithril-test-lab/mithril-end-to-end/src/stress_test Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,11 @@ impl Reporter {
157
157
pub fn stop ( & mut self ) {
158
158
match & self . current_timing {
159
159
Some ( ( phase, instant) ) => {
160
+ let phase = if self . number_of_clients == 0 {
161
+ format ! ( "{phase} - without clients" )
162
+ } else {
163
+ format ! ( "{phase} - with clients" )
164
+ } ;
160
165
let timing = Timing {
161
166
phase : phase. clone ( ) ,
162
167
duration : instant. elapsed ( ) ,
@@ -170,11 +175,15 @@ impl Reporter {
170
175
}
171
176
172
177
pub fn print_report ( & self ) {
173
- println ! ( "number_of_signers\t {}" , self . number_of_signers) ;
174
- println ! ( "number_of_clients\t {}" , self . number_of_clients) ;
175
- println ! ( "phase\t duration/ms" ) ;
178
+ println ! ( "signers\t clients\t phase\t duration/ms" ) ;
176
179
for t in & self . timings {
177
- println ! ( "{}\t {}" , t. phase, t. duration. as_millis( ) ) ;
180
+ println ! (
181
+ "{}\t {}\t {}\t {}" ,
182
+ self . number_of_signers,
183
+ self . number_of_clients,
184
+ t. phase,
185
+ t. duration. as_millis( )
186
+ ) ;
178
187
}
179
188
}
180
189
}
You can’t perform that action at this time.
0 commit comments