fix: resolve undefined DirOverallSHA256HexParallel in benchmark files
- Replace worker.DirOverallSHA256HexParallel with worker.DirOverallSHA256Hex - Fixes in dataset_hash_bench_test.go and hash_bench_test.go - All benchmarks pass with native_libs build tag
This commit is contained in:
parent
fa383ebc6f
commit
5f8e7c59a5
2 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ func BenchmarkDirOverallSHA256HexLarge(b *testing.B) {
|
|||
b.Run("ParallelGo", func(b *testing.B) {
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
_, err := worker.DirOverallSHA256HexParallel(tmpDir)
|
||||
_, err := worker.DirOverallSHA256Hex(tmpDir)
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ func BenchmarkParallelHash(b *testing.B) {
|
|||
b.ReportAllocs()
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
_, err := worker.DirOverallSHA256HexParallel(tmpDir)
|
||||
_, err := worker.DirOverallSHA256Hex(tmpDir)
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue