mirror of
https://github.com/jarun/nnn.git
synced 2024-11-30 06:41:28 +00:00
Updated Performance (markdown)
parent
f06ece3e91
commit
f91394dd0e
|
@ -54,7 +54,7 @@ Stripped binary (or script) size & memory usage of `nnn` and some other popular
|
|||
Results with a more aggressive custom static compilation 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
|
||||
$ 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
|
||||
$ upx nnn-static
|
||||
$ top
|
||||
<b> BINSZ</b> VIRT <b> RES</b> SHR S %MEM COMMAND
|
||||
|
@ -62,6 +62,19 @@ $ 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):
|
||||
|
||||
|
||||
<pre>
|
||||
$ musl-gcc -O3 -DNORL -I../netbsd-curses/libcurses -o nnn-shared src/nnn.c -Wl,-Bsymbolic-functions -L/opt/netbsd-curses -lcurses -lterminfo
|
||||
$ strip nnn-shared
|
||||
$ musl-gcc -O3 -DNORL -I../netbsd-curses/libcurses -o nnn-static src/nnn.c -Wl,-Bsymbolic-functions -L/opt/netbsd-curses -lcurses -lterminfo -static
|
||||
$ strip nnn-static
|
||||
<b> BINSZ</b> VIRT <b> RES</b> SHR S %MEM COMMAND
|
||||
<b> 102K</b> 1952 <b> 1580</b> 868 S 0.0 nnn-shared -dn
|
||||
<b> 354K</b> 1164 <b> 824</b> 348 S 0.0 nnn-static -dn
|
||||
</pre>
|
||||
|
||||
## nnn vs. ls
|
||||
|
||||
The stripped binary size of `ls` is 130.7K.
|
||||
|
|
Loading…
Reference in a new issue