MCPcopy Index your code
hub / github.com/google/go-github / BenchmarkStringify

Function BenchmarkStringify

github/strings_benchmark_test.go:22–36  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

20}
21
22func BenchmarkStringify(b *testing.B) {
23 s := &BenchmarkStruct{
24 Name: "benchmark",
25 Age: 30,
26 Active: true,
27 Score: 1.1,
28 Rank: 99.999999,
29 Tags: []string{"go", "github", "api"},
30 Pointer: Ptr(42),
31 }
32 b.ResetTimer()
33 for b.Loop() {
34 Stringify(s)
35 }
36}

Callers

nothing calls this directly

Calls 2

StringifyFunction · 0.85
PtrFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…