Skip to content

Commit

Permalink
Fix avg speed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Kostin committed Feb 28, 2019
1 parent ddbea1d commit 6a6bf58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ceph-gobench.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func bench(cephconn *Cephconnection, osddevice Device, buffs *[][]byte, startbuf
// iops = 1s / latency
iops := 1000000 / latencytotal * int64(params.threadsCount)
// avg speed = iops * block size / 1 MB
avgspeed := 1000000 / float64(latencytotal) * float64(params.blocksize) / 1024 / 1024
avgspeed := 1000000 / float64(latencytotal) * float64(params.blocksize) / 1024 / 1024 * float64(params.threadsCount)
avgline := fmt.Sprintf("Avg iops: %-5v Avg speed: %.3f MB/s Total writes count: %-5v Total writes (MB): %-5v\n\n",
iops, avgspeed, len(osdlatencies), uint64(len(osdlatencies))*params.blocksize/1024/1024)
switch {
Expand Down

0 comments on commit 6a6bf58

Please sign in to comment.