THE CYBERIX NETWORK

The sophisticated man's creative playground

are you the type of person to download a 100 MB wallpaper?

utils

LOUNGE · Back to threads · Report thread

Anonymous · original post · 2026-05-13 23:52:01

a solid computer system needs a solid set of utilities, so which implementation is the most optimal and minimal? here is a comparison of how many lines of code it takes for the cat command in each toolset (note: loc is not a definitive measurement of optimization, but it can give a good idea). all implementations are written in C unless stated otherwise
gnu coreutils - 684 loc
freebsd utils - 470 loc
openbsd utils - 219 loc
busybox - 200 loc
rustybox - 136 loc (in rust)
toybox - 59 loc
sbase - 46 loc
plan 9/9front/9base - 36loc
so does plan9 win?

Attachments: utils.png
utils.png

Report · Quote

Anonymous · reply · 2026-05-15 07:17:17

yes xister, plan9 wins, go to http://9front.lgbt and install it on your computer
also having a p*nis is unnecessary bloat so don't forget to chop it off~ UwU

Report · Quote

Anonymous · reply · 2026-05-15 07:25:27

Not necessarily, because the speed of the utilities also matters

Report · Quote

Anonymous · reply · 2026-07-04 21:57:22

>>18324
If something is simple it can in most cases be more performant than complex alternatives, because it runs fewer instructions, but of course there's room for optimization for edge cases and bigger and complex inputs and states.

Report · Quote

Anonymous · reply · 2026-07-06 00:42:53

Anything GNU is bloated from decades of Linux hacking, but using anything below busybox is just crippling yourself for no real benefit. I'd go with busybox.

LOC is not a great measure of performance and to an extent performance doesn't matter that much specially when it comes to command line utilities. You also want to consider things like compatibility, security and overall usability.

For example urxvt has a massive codebase but is one of the most performant terminal emulators.

Report · Quote

Reply to this thread

Posting requires a durable account or a TripPass. Reading remains available.

Sign in or create or attach a TripPass to post. Browsing is open.