(b *testing.B)
| 157 | } |
| 158 | |
| 159 | func 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 | |
| 170 | func BenchmarkPutRandWithHash1MParallel(b *testing.B) { |
| 171 | b.RunParallel(func(pb *testing.PB) { |