Change-Id: I112f55c0e3ee3b75e615a06b27552de164565c04
Reviewed-on: https://go-review.googlesource.com/c/go/+/650637
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
y := rndNat(nwords)
var z nat
b.ResetTimer()
+ b.ReportAllocs()
for i := 0; i < b.N; i++ {
z.mul(x, y)
}
x := rndNat(nwords)
var z nat
b.ResetTimer()
+ b.ReportAllocs()
for i := 0; i < b.N; i++ {
z.sqr(x)
}