- Timestamp:
- Apr 16, 2021, 2:28:09 PM (3 years ago)
- 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. - Location:
- benchmark
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/basic/ttst_lock.c
r857a1c6 rc8a0210 9 9 #define CALIGN __attribute__(( aligned (CACHE_ALIGN) )) 10 10 #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 12 18 13 19 typedef uintptr_t TYPE; // addressable word-size -
benchmark/benchcltr.hfa
r857a1c6 rc8a0210 114 114 for() { 115 115 sleep(100`ms); 116 end = getTimeNsec();116 end = timeNsec(); 117 117 Duration delta = end - start; 118 118 /*if(is_tty)*/ { … … 126 126 } 127 127 #else 128 uint64_t getTimeNsec() {128 uint64_t timeNsec() { 129 129 timespec curr; 130 130 clock_gettime( CLOCK_REALTIME, &curr ); … … 140 140 for(;;) { 141 141 usleep(100000); 142 end = getTimeNsec();142 end = timeNsec(); 143 143 uint64_t delta = end - start; 144 144 /*if(is_tty)*/ { -
benchmark/io/http/protocol.cfa
r857a1c6 rc8a0210 249 249 250 250 char buff[100]; 251 Time now = getTimeNsec();251 Time now = timeNsec(); 252 252 strftime( buff, 100, "%a, %d %b %Y %H:%M:%S %Z", now ); 253 253 sout | "Updated date to '" | buff | "'"; -
benchmark/io/readv-posix.c
r857a1c6 rc8a0210 111 111 printf("Starting\n"); 112 112 bool is_tty = isatty(STDOUT_FILENO); 113 start = getTimeNsec();113 start = timeNsec(); 114 114 run = true; 115 115 … … 118 118 119 119 run = false; 120 end = getTimeNsec();120 end = timeNsec(); 121 121 printf("\nDone\n"); 122 122 -
benchmark/io/readv.cfa
r857a1c6 rc8a0210 147 147 printf("Starting\n"); 148 148 bool is_tty = isatty(STDOUT_FILENO); 149 start = getTimeNsec();149 start = timeNsec(); 150 150 run = true; 151 151 … … 156 156 157 157 run = false; 158 end = getTimeNsec();158 end = timeNsec(); 159 159 printf("\nDone\n"); 160 160 } -
benchmark/readyQ/cycle.cc
r857a1c6 rc8a0210 89 89 90 90 bool is_tty = isatty(STDOUT_FILENO); 91 start = getTimeNsec();91 start = timeNsec(); 92 92 93 93 for(int i = 0; i < nthreads; i++) { … … 97 97 98 98 stop = true; 99 end = getTimeNsec();99 end = timeNsec(); 100 100 printf("\nDone\n"); 101 101 -
benchmark/readyQ/cycle.cfa
r857a1c6 rc8a0210 65 65 66 66 bool is_tty = isatty(STDOUT_FILENO); 67 start = getTimeNsec();67 start = timeNsec(); 68 68 69 69 for(i; nthreads) { … … 73 73 74 74 stop = true; 75 end = getTimeNsec();75 end = timeNsec(); 76 76 printf("\nDone\n"); 77 77 -
benchmark/readyQ/cycle.cpp
r857a1c6 rc8a0210 93 93 94 94 bool is_tty = isatty(STDOUT_FILENO); 95 start = getTimeNsec();95 start = timeNsec(); 96 96 97 97 for(int i = 0; i < nthreads; i++) { … … 101 101 102 102 stop = true; 103 end = getTimeNsec();103 end = timeNsec(); 104 104 printf("\nDone\n"); 105 105 -
benchmark/readyQ/locality.cc
r857a1c6 rc8a0210 281 281 282 282 bool is_tty = isatty(STDOUT_FILENO); 283 start = getTimeNsec();283 start = timeNsec(); 284 284 285 285 for(size_t i = 0; i < nthreads; i++) { … … 289 289 290 290 stop = true; 291 end = getTimeNsec();291 end = timeNsec(); 292 292 printf("\nDone\n"); 293 293 -
benchmark/readyQ/locality.cfa
r857a1c6 rc8a0210 232 232 233 233 bool is_tty = isatty(STDOUT_FILENO); 234 start = getTimeNsec();234 start = timeNsec(); 235 235 236 236 for(i; nthreads) { … … 240 240 241 241 stop = true; 242 end = getTimeNsec();242 end = timeNsec(); 243 243 printf("\nDone\n"); 244 244 -
benchmark/readyQ/locality.cpp
r857a1c6 rc8a0210 287 287 288 288 bool is_tty = isatty(STDOUT_FILENO); 289 start = getTimeNsec();289 start = timeNsec(); 290 290 291 291 for(size_t i = 0; i < nthreads; i++) { … … 295 295 296 296 stop = true; 297 end = getTimeNsec();297 end = timeNsec(); 298 298 printf("\nDone\n"); 299 299 -
benchmark/readyQ/rq_bench.hfa
r857a1c6 rc8a0210 73 73 for() { 74 74 sleep(100`ms); 75 Time end = getTimeNsec();75 Time end = timeNsec(); 76 76 Duration delta = end - start; 77 77 if(is_tty) { -
benchmark/readyQ/rq_bench.hpp
r857a1c6 rc8a0210 46 46 } 47 47 48 uint64_t getTimeNsec() {48 uint64_t timeNsec() { 49 49 timespec curr; 50 50 clock_gettime( CLOCK_REALTIME, &curr ); … … 60 60 for(;;) { 61 61 Sleeper::usleep(100000); 62 uint64_t end = getTimeNsec();62 uint64_t end = timeNsec(); 63 63 uint64_t delta = end - start; 64 64 if(is_tty) { -
benchmark/readyQ/yield.cfa
r857a1c6 rc8a0210 66 66 67 67 bool is_tty = isatty(STDOUT_FILENO); 68 start = getTimeNsec();68 start = timeNsec(); 69 69 run = true; 70 70 … … 75 75 76 76 run = false; 77 end = getTimeNsec();77 end = timeNsec(); 78 78 printf("\nDone\n"); 79 79 }
Note: See TracChangeset
for help on using the changeset viewer.