Changeset b5d51b0 for benchmark/readyQ
- Timestamp:
- Nov 5, 2020, 10:04:17 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:
- be5e34b
- Parents:
- 3959595
- Location:
- benchmark/readyQ
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/cycle.cfa
r3959595 rb5d51b0 84 84 } 85 85 86 printf("Duration (ms) : %'ld\n", (end - start)` ms);86 printf("Duration (ms) : %'ld\n", (end - start)`dms); 87 87 printf("Number of processors : %'d\n", nprocs); 88 88 printf("Number of threads : %'d\n", tthreads); … … 90 90 printf("Total Operations(ops): %'15llu\n", global_counter); 91 91 printf("Total blocks : %'15llu\n", global_blocks); 92 printf("Ops per second : %'18.2lf\n", ((double)global_counter) / (end - start)` s);93 printf("ns per ops : %'18.2lf\n", ( (double)(end - start)`ns)/ global_counter);92 printf("Ops per second : %'18.2lf\n", ((double)global_counter) / (end - start)`ds); 93 printf("ns per ops : %'18.2lf\n", (end - start)`dns / global_counter); 94 94 printf("Ops per threads : %'15llu\n", global_counter / tthreads); 95 95 printf("Ops per procs : %'15llu\n", global_counter / nprocs); 96 printf("Ops/sec/procs : %'18.2lf\n", (((double)global_counter) / nprocs) / (end - start)` s);97 printf("ns per ops/procs : %'18.2lf\n", ( (double)(end - start)`ns)/ (global_counter / nprocs));96 printf("Ops/sec/procs : %'18.2lf\n", (((double)global_counter) / nprocs) / (end - start)`ds); 97 printf("ns per ops/procs : %'18.2lf\n", (end - start)`dns / (global_counter / nprocs)); 98 98 fflush(stdout); 99 99 } -
benchmark/readyQ/cycle.go
r3959595 rb5d51b0 72 72 p.Printf("Cycle size (# thrds) : %d\n", ring_size); 73 73 p.Printf("Total Operations(ops): %15d\n", global_counter) 74 p.Printf(" Yields per second: %18.2f\n", float64(global_counter) / delta.Seconds())74 p.Printf("Ops per second : %18.2f\n", float64(global_counter) / delta.Seconds()) 75 75 p.Printf("ns per ops : %18.2f\n", float64(delta.Nanoseconds()) / float64(global_counter)) 76 76 p.Printf("Ops per threads : %15d\n", global_counter / uint64(tthreads)) -
benchmark/readyQ/rq_bench.hfa
r3959595 rb5d51b0 88 88 } 89 89 90 struct bench_sem {90 struct __attribute__((aligned(128))) bench_sem { 91 91 struct $thread * volatile ptr; 92 92 }; -
benchmark/readyQ/rq_bench.hpp
r3959595 rb5d51b0 75 75 } 76 76 77 class bench_sem {77 class __attribute__((aligned(128))) bench_sem { 78 78 Fibre * volatile ptr = nullptr; 79 79 public:
Note: See TracChangeset
for help on using the changeset viewer.