(b *testing.B)
| 47 | } |
| 48 | |
| 49 | func BenchmarkProcessReadFile500Bytes(b *testing.B) { |
| 50 | b.StopTimer() |
| 51 | Hash = append(Hash, "all") |
| 52 | |
| 53 | content := "" |
| 54 | for i := 0; i < 700; i++ { |
| 55 | content += "1" |
| 56 | } |
| 57 | |
| 58 | data := []byte(content) |
| 59 | var count int64 |
| 60 | |
| 61 | b.StartTimer() |
| 62 | |
| 63 | for i := 0; i < b.N; i++ { |
| 64 | res, _ := processReadFileParallel("filenane", &data) |
| 65 | count += res.Bytes |
| 66 | } |
| 67 | b.Log(count) |
| 68 | } |
| 69 | |
| 70 | func BenchmarkProcessReadFile1000Bytes(b *testing.B) { |
| 71 | b.StopTimer() |
nothing calls this directly
no test coverage detected