Changeset 8e27ac45
- Timestamp:
- Jun 25, 2020, 1:37:33 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 69fbc61
- Parents:
- c34ebf2
- Location:
- benchmark
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified benchmark/benchcltr.hfa ¶
rc34ebf2 r8e27ac45 29 29 for() { 30 30 sleep(100`ms); 31 end = getTime(); 32 if( (end - start) >= duration`s ) { 31 end = getTimeNsec(); 32 Duration delta = end - start; 33 if(is_tty) { 34 printf("\r%.1f", delta`ds); 35 fflush(stdout); 36 } 37 if( delta >= duration`s ) { 33 38 break; 34 }35 if(is_tty) {36 printf("\r%.4lf", (end - start)`ds);37 fflush(stdout);38 39 } 39 40 } -
TabularUnified benchmark/io/readv.cfa ¶
rc34ebf2 r8e27ac45 157 157 printf("Starting\n"); 158 158 bool is_tty = isatty(STDOUT_FILENO); 159 start = getTime ();159 start = getTimeNsec(); 160 160 run = true; 161 161 … … 166 166 167 167 run = false; 168 end = getTime ();168 end = getTimeNsec(); 169 169 printf("\nDone\n"); 170 170 } -
TabularUnified benchmark/readyQ/yield.cfa ¶
rc34ebf2 r8e27ac45 111 111 { 112 112 BenchProc procs[nprocs]; 113 #if !defined(__CFA_NO_STATISTICS__) 114 for(i; nprocs) { 115 print_stats_at_exit( procs[i].self ); 116 } 117 #endif 113 118 { 114 119 Yielder threads[nthreads]; … … 116 121 117 122 bool is_tty = isatty(STDOUT_FILENO); 118 start = getTime ();123 start = getTimeNsec(); 119 124 run = true; 120 125 … … 125 130 126 131 run = false; 127 end = getTime ();132 end = getTimeNsec(); 128 133 printf("\nDone\n"); 129 134 }
Note: See TracChangeset
for help on using the changeset viewer.