Changeset 7a2a3af for benchmark/readyQ
- Timestamp:
- Oct 29, 2020, 9:15:06 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:
- 7ee8153
- Parents:
- 93068e53
- Location:
- benchmark/readyQ
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/cycle.cfa
r93068e53 r7a2a3af 62 62 } 63 63 64 printf("Took %'ld ms\n", (end - start)`ms); 64 printf("Duration (ms) : %'ld\n", (end - start)`ms); 65 printf("Number of processors: %'d\n", nprocs); 66 printf("Number of threads : %'d\n", tthreads); 67 printf("Cycle size (# thrds): %'d\n", ring_size); 65 68 printf("Yields per second : %'18.2lf\n", ((double)global_counter) / (end - start)`s); 66 69 printf("ns per yields : %'18.2lf\n", ((double)(end - start)`ns) / global_counter); -
benchmark/readyQ/cycle.go
r93068e53 r7a2a3af 126 126 127 127 p := message.NewPrinter(language.English) 128 p.Printf("Took %f ms\n", delta.Seconds()) 128 p.Printf("Duration (ms) : %f\n", delta.Seconds()); 129 p.Printf("Number of processors: %d\n", nprocs); 130 p.Printf("Number of threads : %d\n", tthreads); 131 p.Printf("Cycle size (# thrds): %d\n", ring_size); 129 132 p.Printf("Yields per second : %18.2f\n", float64(global_counter) / delta.Seconds()) 130 133 p.Printf("ns per yields : %18.2f\n", float64(delta.Nanoseconds()) / float64(global_counter))
Note: See TracChangeset
for help on using the changeset viewer.