MCPcopy Create free account
hub / github.com/boyter/hashit / BenchmarkProcessReadFile500Bytes

Function BenchmarkProcessReadFile500Bytes

processor/workers_test.go:49–68  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

47}
48
49func 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
70func BenchmarkProcessReadFile1000Bytes(b *testing.B) {
71 b.StopTimer()

Callers

nothing calls this directly

Calls 1

processReadFileParallelFunction · 0.85

Tested by

no test coverage detected