var fileNode … var fileSize … var declNode … var declSize … func testprint(out io.Writer, node ast.Node) { … } // cannot initialize in init because (printer) Fprint launches goroutines. func initialize() { … } func BenchmarkPrintFile(b *testing.B) { … } func BenchmarkPrintDecl(b *testing.B) { … }