@@ -388,6 +388,8 @@ BMK_benchMemAdvancedNoAlloc(
388388# define NB_MARKS 4
389389 const char * marks [NB_MARKS ] = { " |" , " /" , " =" , " \\" };
390390 U32 markNb = 0 ;
391+ char inputSizeStr [8 ] = "" ;
392+ char outputSizeStr [8 ] = "" ;
391393 int compressionCompleted = (adv -> mode == BMK_decodeOnly );
392394 int decompressionCompleted = (adv -> mode == BMK_compressOnly );
393395 BMK_benchParams_t cbp , dbp ;
@@ -429,8 +431,10 @@ BMK_benchMemAdvancedNoAlloc(
429431 dctxprep .dictBuffer = dictBuffer ;
430432 dctxprep .dictBufferSize = dictBufferSize ;
431433
434+ humanSize ((unsigned )srcSize , inputSizeStr );
435+
432436 DISPLAYLEVEL (2 , "\r%70s\r" , "" ); /* blank line */
433- DISPLAYLEVEL (2 , "%2s-%-17.17s :%10u ->\r" , marks [markNb ], displayName , ( unsigned ) srcSize );
437+ DISPLAYLEVEL (2 , "%2s-%-17.17s : %s -> \r" , marks [markNb ], displayName , inputSizeStr );
434438
435439 while (!(compressionCompleted && decompressionCompleted )) {
436440 if (!compressionCompleted ) {
@@ -451,9 +455,13 @@ BMK_benchMemAdvancedNoAlloc(
451455 } }
452456
453457 { int const ratioAccuracy = (ratio < 10. ) ? 3 : 2 ;
454- DISPLAYLEVEL (2 , "%2s-%-17.17s :%10u ->%10u (%5.*f),%6.*f MB/s\r" ,
458+
459+ humanSize ((unsigned )srcSize , inputSizeStr );
460+ humanSize ((unsigned )cSize , outputSizeStr );
461+
462+ DISPLAYLEVEL (2 , "%2s-%-17.17s : %s -> %s (%5.*f),%6.*f MB/s\r" ,
455463 marks [markNb ], displayName ,
456- ( unsigned ) srcSize , ( unsigned ) cSize ,
464+ inputSizeStr , outputSizeStr ,
457465 ratioAccuracy , ratio ,
458466 benchResult .cSpeed < (10 MB ) ? 2 : 1 , (double )benchResult .cSpeed / MB_UNIT );
459467 }
@@ -474,9 +482,13 @@ BMK_benchMemAdvancedNoAlloc(
474482 }
475483
476484 { int const ratioAccuracy = (ratio < 10. ) ? 3 : 2 ;
477- DISPLAYLEVEL (2 , "%2s-%-17.17s :%10u ->%10u (%5.*f),%6.*f MB/s ,%6.1f MB/s \r" ,
485+
486+ humanSize ((unsigned )srcSize , inputSizeStr );
487+ humanSize ((unsigned )cSize , outputSizeStr );
488+
489+ DISPLAYLEVEL (2 , "%2s-%-17.17s : %s -> %s (%5.*f),%6.*f MB/s ,%6.1f MB/s \r" ,
478490 marks [markNb ], displayName ,
479- ( unsigned ) srcSize , ( unsigned ) cSize ,
491+ inputSizeStr , outputSizeStr ,
480492 ratioAccuracy , ratio ,
481493 benchResult .cSpeed < (10 MB ) ? 2 : 1 , (double )benchResult .cSpeed / MB_UNIT ,
482494 (double )benchResult .dSpeed / MB_UNIT );
0 commit comments