(b *testing.B)
| 168 | } |
| 169 | |
| 170 | func BenchmarkPutRandWithHash1MParallel(b *testing.B) { |
| 171 | b.RunParallel(func(pb *testing.PB) { |
| 172 | for pb.Next() { |
| 173 | err := putRand(1024*1024, cos.ChecksumXXHash) |
| 174 | if err != nil { |
| 175 | b.Fatal(err) |
| 176 | } |
| 177 | } |
| 178 | }) |
| 179 | } |
| 180 | |
| 181 | func BenchmarkPutSGWithHash1MParallel(b *testing.B) { |
| 182 | b.RunParallel(func(pb *testing.PB) { |