News for hackers. Stuff that matters.
Re:Exa - A Modern Replacement for ls by bool3max on Sunday December 19, 2021 @04:36PM (#29618666)
That is not at all the behavior that I am observing on my system:

"time command ls -lR -color=always": 898 millis

"time command exa -lhgR --icons": 638 millis

This is in a directory of roughly 17k files of varying filetypes. Exa also outputs underlines and icons.

---

Admittedly if I create 80000 arbitrary extensionless files "ls" takes around 700 millis while exa takes around 1000 millis, but still the performance difference is nowhere near what you demonstrated.

I don't know what job you're doing that requires "ls"-ing >20k files, but on my system there seems to be no performance penalty before an uncertain, unachievable threshold.

Re:Exa - A Modern Replacement for ls by chasil on Sunday December 19, 2021 @06:39PM (#29619808)
The stat() results are going to be cached.

What is fair for a test like this? SSD or rotational media?

At least clear the caches between runs, or give them the same cache.

https://www.thegeekdiary.com/how-to-clear-the-buffer-pagecac...

Re:Exa - A Modern Replacement for ls by bool3max on Monday December 20, 2021 @06:33AM (#29623671)
Okay, updated results (cleared all the caches and restarted shell/terminal between runs):

"time command ls -lR --color=always": 12.31 secs

"time command exa -lgR --icons": 11.32 secs

Still, no performance difference on my system. In fact exa seems to be slightly faster (I did the test multiple times and it was alwasy ~1 second faster). This is on a physical HDD and I could hear it churning equivalently on both of the runs.

Re:Exa - A Modern Replacement for ls by sincerely on Sunday December 19, 2021 @11:25PM (#29621565)
The fair test is the hardware you’re going to be running it on