1
0

Added a benchmark for ScanDirectory().

This commit is contained in:
Alexander Andreev 2023-09-20 04:56:08 +04:00
parent cbe0292e4c
commit df3ea75ca9
Signed by: Arav
GPG Key ID: D22A817D95815393

13
pkg/files/files_test.go Normal file
View File

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