MCPcopy
hub / github.com/NVIDIA/aistore / BenchmarkPutFileWithHash1MParallel

Function BenchmarkPutFileWithHash1MParallel

devtools/tutils/client_test.go:159–168  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

157}
158
159func BenchmarkPutFileWithHash1MParallel(b *testing.B) {
160 b.RunParallel(func(pb *testing.PB) {
161 for pb.Next() {
162 err := putFile(1024*1024, cos.ChecksumXXHash)
163 if err != nil {
164 b.Fatal(err)
165 }
166 }
167 })
168}
169
170func BenchmarkPutRandWithHash1MParallel(b *testing.B) {
171 b.RunParallel(func(pb *testing.PB) {

Callers

nothing calls this directly

Calls 2

putFileFunction · 0.85
NextMethod · 0.45

Tested by

no test coverage detected