Changeset c8a0210 for benchmark


Ignore:
Timestamp:
Apr 16, 2021, 2:28:09 PM (3 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
Children:
665edf40
Parents:
857a1c6 (diff), 5f6a172 (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
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • benchmark/basic/ttst_lock.c

    r857a1c6 rc8a0210  
    99#define CALIGN __attribute__(( aligned (CACHE_ALIGN) ))
    1010#define CACHE_ALIGN 128
    11 #define Pause() __asm__ __volatile__ ( "pause" : : : )
     11#if defined( __i386 ) || defined( __x86_64 )
     12        #define Pause() __asm__ __volatile__ ( "pause" : : : )
     13#elif defined( __ARM_ARCH )
     14        #define Pause() __asm__ __volatile__ ( "YIELD" : : : )
     15#else
     16        #error unsupported architecture
     17#endif
    1218
    1319typedef uintptr_t TYPE;                                                                 // addressable word-size
  • benchmark/benchcltr.hfa

    r857a1c6 rc8a0210  
    114114        for() {
    115115                sleep(100`ms);
    116                 end = getTimeNsec();
     116                end = timeNsec();
    117117                Duration delta = end - start;
    118118                /*if(is_tty)*/ {
     
    126126}
    127127#else
    128 uint64_t getTimeNsec() {
     128uint64_t timeNsec() {
    129129        timespec curr;
    130130        clock_gettime( CLOCK_REALTIME, &curr );
     
    140140        for(;;) {
    141141                usleep(100000);
    142                 end = getTimeNsec();
     142                end = timeNsec();
    143143                uint64_t delta = end - start;
    144144                /*if(is_tty)*/ {
  • benchmark/io/http/protocol.cfa

    r857a1c6 rc8a0210  
    249249
    250250                char buff[100];
    251                 Time now = getTimeNsec();
     251                Time now = timeNsec();
    252252                strftime( buff, 100, "%a, %d %b %Y %H:%M:%S %Z", now );
    253253                sout | "Updated date to '" | buff | "'";
  • benchmark/io/readv-posix.c

    r857a1c6 rc8a0210  
    111111                                printf("Starting\n");
    112112                                bool is_tty = isatty(STDOUT_FILENO);
    113                                 start = getTimeNsec();
     113                                start = timeNsec();
    114114                                run = true;
    115115
     
    118118
    119119                                run = false;
    120                                 end = getTimeNsec();
     120                                end = timeNsec();
    121121                                printf("\nDone\n");
    122122
  • benchmark/io/readv.cfa

    r857a1c6 rc8a0210  
    147147                                printf("Starting\n");
    148148                                bool is_tty = isatty(STDOUT_FILENO);
    149                                 start = getTimeNsec();
     149                                start = timeNsec();
    150150                                run = true;
    151151
     
    156156
    157157                                run = false;
    158                                 end = getTimeNsec();
     158                                end = timeNsec();
    159159                                printf("\nDone\n");
    160160                        }
  • benchmark/readyQ/cycle.cc

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

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

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

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

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

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

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

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

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