var calibrate … const sqrModeMul … const sqrModeBasic … const sqrModeKaratsuba … func TestCalibrate(t *testing.T) { … } func karatsubaLoad(b *testing.B) { … } // measureKaratsuba returns the time to run a Karatsuba-relevant benchmark // given Karatsuba threshold th. func measureKaratsuba(th int) time.Duration { … } func computeKaratsubaThresholds() { … } func measureSqr(words, nruns int, mode string) time.Duration { … } func computeSqrThreshold(from, to, step, nruns int, lower, upper string) int { … }