Skip to content

Commit

Permalink
perf units in MB/s
Browse files Browse the repository at this point in the history
  • Loading branch information
benmcclelland committed Oct 12, 2021
1 parent 788339f commit d7255c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ func main() {
continue
}
tot += res.size
fmt.Printf("%v: %v in %v (%v B/s)\n",
fmt.Printf("%v: %v in %v (%v MB/s)\n",
i, res.size, res.elapsed,
int(math.Ceil(float64(res.size)/res.elapsed.Seconds())))
int(math.Ceil(float64(res.size)/res.elapsed.Seconds())/1048576))
}

fmt.Println()
fmt.Printf("run perf: %v in %v (%v B/s)\n",
tot, elapsed, int(math.Ceil(float64(tot)/elapsed.Seconds())))
fmt.Printf("run perf: %v in %v (%v MB/s)\n",
tot, elapsed, int(math.Ceil(float64(tot)/elapsed.Seconds())/1048576))
}

0 comments on commit d7255c1

Please sign in to comment.