Changeset cbabfd4


Ignore:
Timestamp:
May 6, 2020, 1:50:10 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
cb870e0
Parents:
4385e8b
Message:

Several fixes to prints in the io readv benchmark

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/readv.cfa

    r4385e8b rcbabfd4  
    133133        }
    134134
    135         printf("Running %lu threads, reading %lu bytes each, over %lu processors for %lf seconds\n", buflen, nthreads, nprocs, duration);
     135        printf("Running %lu threads, reading %lu bytes each, over %lu processors for %lf seconds\n", nthreads, buflen, nprocs, duration);
    136136
    137137        {
     
    160160                }
    161161                printf("Took %'ld ms\n", (end - start)`ms);
    162                 printf("Total reads:      %'zu\n", count);
    163                 printf("Reads per second: %'.2lf\n", ((double)count) / (end - start)`s);
    164                 printf("Total read size:  %'zu\n", buflen * count);
    165                 printf("Bytes per second: %'.2lf\n", ((double)count * buflen) / (end - start)`s);
     162                printf("Total reads      : %'15zu\n", count);
     163                printf("Reads per second : %'18.2lf\n", ((double)count) / (end - start)`s);
     164                printf("Total read size  : %'15zu\n", buflen * count);
     165                printf("Bytes per second : %'18.2lf\n", ((double)count * buflen) / (end - start)`s);
    166166        }
    167167
Note: See TracChangeset for help on using the changeset viewer.