diff --git a/pkg/fileutils/fileutils_test.go b/pkg/fileutils/fileutils_test.go index dc50eac30de4936dd8ddbc56375370c43e614fe7..7876ddf4b217ee6dacb05788daa741c3ada71145 100644 --- a/pkg/fileutils/fileutils_test.go +++ b/pkg/fileutils/fileutils_test.go @@ -240,3 +240,10 @@ func TestCreateIfNotExistsFile(t *testing.T) { t.Errorf("Should have been a file, seems it's not") } } + +func BenchmarkGetTotalUsedFds(b *testing.B) { + b.ReportAllocs() + for i := 0; i < b.N; i++ { + _ = GetTotalUsedFds() + } +}