Changeset 6528d75
- Timestamp:
- Apr 16, 2021, 1:05:58 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 5f6a172
- Parents:
- 431cd4f
- Location:
- benchmark
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/benchcltr.hfa
r431cd4f r6528d75 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
r431cd4f r6528d75 228 228 229 229 char buff[100]; 230 Time now = getTimeNsec();230 Time now = timeNsec(); 231 231 strftime( buff, 100, "%a, %d %b %Y %H:%M:%S %Z", now ); 232 232 sout | "Updated date to '" | buff | "'"; -
benchmark/io/readv-posix.c
r431cd4f r6528d75 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
r431cd4f r6528d75 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
r431cd4f r6528d75 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
r431cd4f r6528d75 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
r431cd4f r6528d75 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
r431cd4f r6528d75 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
r431cd4f r6528d75 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
r431cd4f r6528d75 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
r431cd4f r6528d75 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
r431cd4f r6528d75 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
r431cd4f r6528d75 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.