We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f31b706 commit 6a9a69aCopy full SHA for 6a9a69a
docs/01-common-patterns/src/object-pooling_test.go
@@ -13,8 +13,8 @@ type Data struct {
13
// BenchmarkWithoutPooling measures the performance of direct heap allocations.
14
func BenchmarkWithoutPooling(b *testing.B) {
15
for b.Loop() {
16
- data := &Data{} // Allocating a new object each time
17
- data.Values[0] = 42 // Simulating some memory activity
+ data := &Data{} // Allocating a new object each time
+ data.Values[0] = 42 // Simulating some memory activity
18
}
19
20
0 commit comments