Changeset b1ac7dd


Ignore:
Timestamp:
May 5, 2020, 4:53:37 PM (17 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
4385e8b
Parents:
05cfa4d
Message:

Small fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/readv.cfa

    r05cfa4d rb1ac7dd  
    4949        while(__atomic_load_n(&run, __ATOMIC_RELAXED)) {
    5050                int r = cfa_preadv2(fd, &iov, 1, 0, 0);
    51                 if(r < 0) abort(strerror(-r));
     51                if(r < 0) abort("%s\n", strerror(-r));
    5252
    5353                __atomic_fetch_add( &count, 1, __ATOMIC_SEQ_CST );
     
    6060        unsigned long int nprocs   = 1;
    6161        int flags = 0;
    62 
    63         printf("Setting local\n");
    64         setlocale(LC_NUMERIC, "");
    6562
    6663        arg_loop:
     
    136133        }
    137134
    138         printf("Running %lu threads over %lu processors for %lf seconds\n", nthreads, nprocs, duration);
     135        printf("Running %lu threads, reading %lu bytes each, over %lu processors for %lf seconds\n", buflen, nthreads, nprocs, duration);
    139136
    140137        {
     
    162159                        }
    163160                }
    164                 printf("Took %ld ms\n", (end - start)`ms);
     161                printf("Took %'ld ms\n", (end - start)`ms);
    165162                printf("Total reads:      %'zu\n", count);
    166                 printf("Reads per second: %'lf\n", ((double)count) / (end - start)`s);
     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);
    167166        }
    168167
Note: See TracChangeset for help on using the changeset viewer.