1
0
Fork 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
1 changed files with 13 additions and 0 deletions

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