1
0

Fixed benchmark for ScanDirectory().

This commit is contained in:
Alexander Andreev 2024-12-30 15:30:51 +04:00
parent dac60a6010
commit 73a3b16f29
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -2,12 +2,12 @@ package files
import "testing"
const path = "/mnt/data/music/Various"
const urlBase = "/srv/ftp/"
const base = "/srv/ftp"
const path = "/music/Various"
func BenchmarkScanDirectory(b *testing.B) {
for i := 0; i < b.N; i++ {
/*e, _, _ :=*/ ScanDirectory(path, urlBase)
/*e, _, _ :=*/ ScanDirectory(base, path)
// b.Log(e[len(e)-1], len(e))
}
}