Changeset 665edf40 for benchmark/readyQ


Ignore:
Timestamp:
Apr 19, 2021, 5:08:43 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
Children:
73d0c54a
Parents:
c8a0210 (diff), d2fadeb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
benchmark/readyQ
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/cycle.cc

    rc8a0210 r665edf40  
    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

    rc8a0210 r665edf40  
    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

    rc8a0210 r665edf40  
    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

    rc8a0210 r665edf40  
    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

    rc8a0210 r665edf40  
    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

    rc8a0210 r665edf40  
    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

    rc8a0210 r665edf40  
    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

    rc8a0210 r665edf40  
    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

    rc8a0210 r665edf40  
    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.