github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/bench/microbenchmarks/nstlvl/README.md (about) 1 This is a micro-benchmark intended to help find out the impact (or lack of thereof) of POSIX directory nesting on the performance. Specifically, on the performance of random reading of files stored in very large directories. 2 3 By way of background, in AIStore (where we currently use local filesystems to store objects) the depth of POSIX directory nesting can be optimized - in some cases, and to a certain degree. This benchmark is a small step to find out. 4 5 ```console 6 # run with all defaults: 7 $ go test -v -bench=. -benchmem 8 9 # generate and random-read 300K 4K-size files: 10 $ go test -v -bench=. -size=4096 -num=300000 11 12 # generate 8K-size files under `/ais/mpath` and run for at least 1m (to increase the number of iterations) 13 $ go test -v -bench=. -size=8192 -dir=/ais/mpath -benchtime=1m 14 15 # print usage and exit: 16 $ go test -bench=. -usage 17 ```