MCPcopy Create free account
hub / github.com/containerd/cgroups / BenchmarkReaduint64

Function BenchmarkReaduint64

cgroup1/utils_test.go:25–34  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

23)
24
25func BenchmarkReaduint64(b *testing.B) {
26 b.ReportAllocs()
27
28 for i := 0; i < b.N; i++ {
29 _, err := readUint("/proc/self/loginuid")
30 if err != nil {
31 b.Fatal(err)
32 }
33 }
34}
35
36func TestReadUint(t *testing.T) {
37 tDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

readUintFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…