- Timestamp:
- Apr 19, 2021, 5:08:43 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:
- 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. - Location:
- benchmark
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/benchcltr.hfa
rc8a0210 r665edf40 114 114 for() { 115 115 sleep(100`ms); 116 end = time Nsec();116 end = timeHiRes(); 117 117 Duration delta = end - start; 118 118 /*if(is_tty)*/ { … … 126 126 } 127 127 #else 128 uint64_t time Nsec() {128 uint64_t timeHiRes() { 129 129 timespec curr; 130 130 clock_gettime( CLOCK_REALTIME, &curr ); … … 140 140 for(;;) { 141 141 usleep(100000); 142 end = time Nsec();142 end = timeHiRes(); 143 143 uint64_t delta = end - start; 144 144 /*if(is_tty)*/ { -
benchmark/io/http/protocol.cfa
rc8a0210 r665edf40 249 249 250 250 char buff[100]; 251 Time now = time Nsec();251 Time now = timeHiRes(); 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
rc8a0210 r665edf40 111 111 printf("Starting\n"); 112 112 bool is_tty = isatty(STDOUT_FILENO); 113 start = time Nsec();113 start = timeHiRes(); 114 114 run = true; 115 115 … … 118 118 119 119 run = false; 120 end = time Nsec();120 end = timeHiRes(); 121 121 printf("\nDone\n"); 122 122 -
benchmark/io/readv.cfa
rc8a0210 r665edf40 147 147 printf("Starting\n"); 148 148 bool is_tty = isatty(STDOUT_FILENO); 149 start = time Nsec();149 start = timeHiRes(); 150 150 run = true; 151 151 … … 156 156 157 157 run = false; 158 end = time Nsec();158 end = timeHiRes(); 159 159 printf("\nDone\n"); 160 160 } -
benchmark/readyQ/cycle.cc
rc8a0210 r665edf40 89 89 90 90 bool is_tty = isatty(STDOUT_FILENO); 91 start = time Nsec();91 start = timeHiRes(); 92 92 93 93 for(int i = 0; i < nthreads; i++) { … … 97 97 98 98 stop = true; 99 end = time Nsec();99 end = timeHiRes(); 100 100 printf("\nDone\n"); 101 101 -
benchmark/readyQ/cycle.cfa
rc8a0210 r665edf40 65 65 66 66 bool is_tty = isatty(STDOUT_FILENO); 67 start = time Nsec();67 start = timeHiRes(); 68 68 69 69 for(i; nthreads) { … … 73 73 74 74 stop = true; 75 end = time Nsec();75 end = timeHiRes(); 76 76 printf("\nDone\n"); 77 77 -
benchmark/readyQ/cycle.cpp
rc8a0210 r665edf40 93 93 94 94 bool is_tty = isatty(STDOUT_FILENO); 95 start = time Nsec();95 start = timeHiRes(); 96 96 97 97 for(int i = 0; i < nthreads; i++) { … … 101 101 102 102 stop = true; 103 end = time Nsec();103 end = timeHiRes(); 104 104 printf("\nDone\n"); 105 105 -
benchmark/readyQ/locality.cc
rc8a0210 r665edf40 281 281 282 282 bool is_tty = isatty(STDOUT_FILENO); 283 start = time Nsec();283 start = timeHiRes(); 284 284 285 285 for(size_t i = 0; i < nthreads; i++) { … … 289 289 290 290 stop = true; 291 end = time Nsec();291 end = timeHiRes(); 292 292 printf("\nDone\n"); 293 293 -
benchmark/readyQ/locality.cfa
rc8a0210 r665edf40 232 232 233 233 bool is_tty = isatty(STDOUT_FILENO); 234 start = time Nsec();234 start = timeHiRes(); 235 235 236 236 for(i; nthreads) { … … 240 240 241 241 stop = true; 242 end = time Nsec();242 end = timeHiRes(); 243 243 printf("\nDone\n"); 244 244 -
benchmark/readyQ/locality.cpp
rc8a0210 r665edf40 287 287 288 288 bool is_tty = isatty(STDOUT_FILENO); 289 start = time Nsec();289 start = timeHiRes(); 290 290 291 291 for(size_t i = 0; i < nthreads; i++) { … … 295 295 296 296 stop = true; 297 end = time Nsec();297 end = timeHiRes(); 298 298 printf("\nDone\n"); 299 299 -
benchmark/readyQ/rq_bench.hfa
rc8a0210 r665edf40 73 73 for() { 74 74 sleep(100`ms); 75 Time end = time Nsec();75 Time end = timeHiRes(); 76 76 Duration delta = end - start; 77 77 if(is_tty) { -
benchmark/readyQ/rq_bench.hpp
rc8a0210 r665edf40 46 46 } 47 47 48 uint64_t time Nsec() {48 uint64_t timeHiRes() { 49 49 timespec curr; 50 50 clock_gettime( CLOCK_REALTIME, &curr ); … … 60 60 for(;;) { 61 61 Sleeper::usleep(100000); 62 uint64_t end = time Nsec();62 uint64_t end = timeHiRes(); 63 63 uint64_t delta = end - start; 64 64 if(is_tty) { -
benchmark/readyQ/yield.cfa
rc8a0210 r665edf40 66 66 67 67 bool is_tty = isatty(STDOUT_FILENO); 68 start = time Nsec();68 start = timeHiRes(); 69 69 run = true; 70 70 … … 75 75 76 76 run = false; 77 end = time Nsec();77 end = timeHiRes(); 78 78 printf("\nDone\n"); 79 79 }
Note:
See TracChangeset
for help on using the changeset viewer.