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:
Jeremie Fraeys 2026-02-21 14:30:22 -05:00
parent fa383ebc6f
commit 5f8e7c59a5
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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)
}

View file

@ -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)
}