Fixed benchmark for ScanDirectory().
This commit is contained in:
parent
dac60a6010
commit
73a3b16f29
@ -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))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user