Changeset e54d0c3 for benchmark/readyQ


Ignore:
Timestamp:
Apr 18, 2021, 8:16:47 AM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
4aa495f
Parents:
5f6a172
Message:

Fixed benchmarks after another change to getTimeNsec()

Location:
benchmark/readyQ
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/cycle.cc

    r5f6a172 re54d0c3  
    8989
    9090                        bool is_tty = isatty(STDOUT_FILENO);
    91                         start = timeNsec();
     91                        start = timeHiRes();
    9292
    9393                        for(int i = 0; i < nthreads; i++) {
     
    9797
    9898                        stop = true;
    99                         end = timeNsec();
     99                        end = timeHiRes();
    100100                        printf("\nDone\n");
    101101
  • benchmark/readyQ/cycle.cfa

    r5f6a172 re54d0c3  
    6565
    6666                        bool is_tty = isatty(STDOUT_FILENO);
    67                         start = timeNsec();
     67                        start = timeHiRes();
    6868
    6969                        for(i; nthreads) {
     
    7373
    7474                        stop = true;
    75                         end = timeNsec();
     75                        end = timeHiRes();
    7676                        printf("\nDone\n");
    7777
  • benchmark/readyQ/cycle.cpp

    r5f6a172 re54d0c3  
    9393
    9494                        bool is_tty = isatty(STDOUT_FILENO);
    95                         start = timeNsec();
     95                        start = timeHiRes();
    9696
    9797                        for(int i = 0; i < nthreads; i++) {
     
    101101
    102102                        stop = true;
    103                         end = timeNsec();
     103                        end = timeHiRes();
    104104                        printf("\nDone\n");
    105105
  • benchmark/readyQ/locality.cc

    r5f6a172 re54d0c3  
    281281
    282282                        bool is_tty = isatty(STDOUT_FILENO);
    283                         start = timeNsec();
     283                        start = timeHiRes();
    284284
    285285                        for(size_t i = 0; i < nthreads; i++) {
     
    289289
    290290                        stop = true;
    291                         end = timeNsec();
     291                        end = timeHiRes();
    292292                        printf("\nDone\n");
    293293
  • benchmark/readyQ/locality.cfa

    r5f6a172 re54d0c3  
    232232
    233233                        bool is_tty = isatty(STDOUT_FILENO);
    234                         start = timeNsec();
     234                        start = timeHiRes();
    235235
    236236                        for(i; nthreads) {
     
    240240
    241241                        stop = true;
    242                         end = timeNsec();
     242                        end = timeHiRes();
    243243                        printf("\nDone\n");
    244244
  • benchmark/readyQ/locality.cpp

    r5f6a172 re54d0c3  
    287287
    288288                        bool is_tty = isatty(STDOUT_FILENO);
    289                         start = timeNsec();
     289                        start = timeHiRes();
    290290
    291291                        for(size_t i = 0; i < nthreads; i++) {
     
    295295
    296296                        stop = true;
    297                         end = timeNsec();
     297                        end = timeHiRes();
    298298                        printf("\nDone\n");
    299299
  • benchmark/readyQ/rq_bench.hfa

    r5f6a172 re54d0c3  
    7373        for() {
    7474                sleep(100`ms);
    75                 Time end = timeNsec();
     75                Time end = timeHiRes();
    7676                Duration delta = end - start;
    7777                if(is_tty) {
  • benchmark/readyQ/rq_bench.hpp

    r5f6a172 re54d0c3  
    4646        }
    4747
    48 uint64_t timeNsec() {
     48uint64_t timeHiRes() {
    4949        timespec curr;
    5050        clock_gettime( CLOCK_REALTIME, &curr );
     
    6060        for(;;) {
    6161                Sleeper::usleep(100000);
    62                 uint64_t end = timeNsec();
     62                uint64_t end = timeHiRes();
    6363                uint64_t delta = end - start;
    6464                if(is_tty) {
  • benchmark/readyQ/yield.cfa

    r5f6a172 re54d0c3  
    6666
    6767                                bool is_tty = isatty(STDOUT_FILENO);
    68                                 start = timeNsec();
     68                                start = timeHiRes();
    6969                                run = true;
    7070
     
    7575
    7676                                run = false;
    77                                 end = timeNsec();
     77                                end = timeHiRes();
    7878                                printf("\nDone\n");
    7979                        }
Note: See TracChangeset for help on using the changeset viewer.