MCPcopy Index your code
hub / github.com/RainbowMango/GoExpertProgramming / benchSub3

Function benchSub3

source/gotest/subbenchmark_test.go:21–25  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

19}
20
21func benchSub3(b *testing.B) {
22 for i := 0; i < b.N; i++ {
23 gotest.MakeSliceWithoutAlloc()
24 }
25}
26
27func BenchmarkSub(b *testing.B) {
28 b.Run("A=1", benchSub1)

Callers

nothing calls this directly

Calls 1

MakeSliceWithoutAllocFunction · 0.92

Tested by

no test coverage detected