This is a simple and naïve test to see which implementations of directory traversing is faster. DON'T take this too seriously.
benchmark.toml is for the tool from swapview.
Result in my case:
About 10k files:
Rust: top: 6.60, min: 6.44, avg: 6.84, max: 7.54, mdev: 0.30, cnt: 20 Go_3rd: top: 9.44, min: 9.37, avg: 9.57, max: 10.22, mdev: 0.20, cnt: 20 find: top: 14.52, min: 14.31, avg: 14.73, max: 15.31, mdev: 0.28, cnt: 20 fd: top: 19.15, min: 16.49, avg: 21.18, max: 26.62, mdev: 2.40, cnt: 20 Go: top: 26.92, min: 26.77, avg: 27.51, max: 30.12, mdev: 0.91, cnt: 20 Python: top: 33.64, min: 33.18, avg: 35.19, max: 45.14, mdev: 2.75, cnt: 20 Python2: top: 38.40, min: 37.56, avg: 39.43, max: 43.84, mdev: 1.66, cnt: 20 Crystal: top: 47.81, min: 46.92, avg: 51.73, max: 77.20, mdev: 7.91, cnt: 20
About 300k files:
fd: top: 265.80, min: 259.84, avg: 273.89, max: 319.76, mdev: 15.03, cnt: 20 Rust: top: 269.98, min: 266.86, avg: 272.82, max: 282.84, mdev: 4.17, cnt: 20 Go_3rd: top: 361.17, min: 359.05, avg: 363.82, max: 370.22, mdev: 3.31, cnt: 20 find: top: 454.03, min: 450.79, avg: 458.51, max: 467.31, mdev: 5.08, cnt: 20 Python: top: 624.80, min: 615.73, avg: 630.67, max: 640.88, mdev: 6.79, cnt: 20 Go: top: 890.03, min: 876.98, avg: 910.63, max: 967.14, mdev: 24.84, cnt: 20 Python2: top: 1171.38, min: 1157.19, avg: 1189.99, max: 1228.09, mdev: 4186.28, cnt: 20