Updated Performance (markdown)

Piña Colada 2021-05-12 18:29:22 +05:30
parent 22317cd714
commit 5c4c4c728b

@ -41,6 +41,8 @@
## Comparison
#### GNU libc + ncursesw vanilla
Stripped binary (or script) size & memory usage of `nnn` and some other popular FMs (which existed before `nnn`) while viewing a directory with 13.5K files (0 directories), sorted by size/du:
<pre>
@ -51,7 +53,9 @@ Stripped binary (or script) size & memory usage of `nnn` and some other popular
<b> 110K</b> 15740 <b> 4348</b> 2460 S 0.1 nnn -t d
</pre>
Results with a more aggressive custom static compilation and upx compression:
#### GNU libc + ncursesw + upx custom
Results with aggressive make options, static binary and upx compression:
<pre>
$ make O_NORL=1 O_NOMOUSE=1 O_NOLOC=1 O_NOBATCH=1 O_NOSSN=1 O_NOFIFO=1 O_QSORT=1 O_NOUG=1 static strip
@ -62,8 +66,9 @@ $ top
<b> 582K</b> 2428 <b> 2240</b> 4 S 0.0 nnn-static -cdDEnQrux -t d /usr/bin // 1.5K files
</pre>
Results with `netbsd-curses` and `musl libc` (1950 files):
#### musc libc + netbsd-curses vanilla
Results with 1950 files:
<pre>
$ musl-gcc -O3 -DNORL -I../netbsd-curses/libcurses -o nnn-shared src/nnn.c -Wl,-Bsymbolic-functions -L/opt/netbsd-curses -lcurses -lterminfo