Changes in benchmark/readyQ/cycle.go [d0b9247:7f8fbe3]
- File:
-
- 1 edited
-
benchmark/readyQ/cycle.go (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/cycle.go
rd0b9247 r7f8fbe3 60 60 atomic.StoreInt32(&stop, 1) 61 61 end := time.Now() 62 d uration:= end.Sub(start)62 delta := end.Sub(start) 63 63 64 64 fmt.Printf("\nDone\n") … … 74 74 75 75 p := message.NewPrinter(language.English) 76 p.Printf("Duration (ms) : % d\n", duration.Milliseconds())76 p.Printf("Duration (ms) : %f\n", delta.Seconds()); 77 77 p.Printf("Number of processors : %d\n", nprocs); 78 78 p.Printf("Number of threads : %d\n", tthreads); 79 79 p.Printf("Cycle size (# thrds) : %d\n", ring_size); 80 80 p.Printf("Total Operations(ops): %15d\n", global_counter) 81 p.Printf("Ops per second : %18.2f\n", float64(global_counter) / d uration.Seconds())82 p.Printf("ns per ops : %18.2f\n", float64(d uration.Nanoseconds()) / float64(global_counter))81 p.Printf("Ops per second : %18.2f\n", float64(global_counter) / delta.Seconds()) 82 p.Printf("ns per ops : %18.2f\n", float64(delta.Nanoseconds()) / float64(global_counter)) 83 83 p.Printf("Ops per threads : %15d\n", global_counter / uint64(tthreads)) 84 84 p.Printf("Ops per procs : %15d\n", global_counter / uint64(nprocs)) 85 p.Printf("Ops/sec/procs : %18.2f\n", (float64(global_counter) / float64(nprocs)) / d uration.Seconds())86 p.Printf("ns per ops/procs : %18.2f\n", float64(d uration.Nanoseconds()) / (float64(global_counter) / float64(nprocs)))85 p.Printf("Ops/sec/procs : %18.2f\n", (float64(global_counter) / float64(nprocs)) / delta.Seconds()) 86 p.Printf("ns per ops/procs : %18.2f\n", float64(delta.Nanoseconds()) / (float64(global_counter) / float64(nprocs))) 87 87 88 88 }
Note:
See TracChangeset
for help on using the changeset viewer.