mirror of
https://github.com/jarun/nnn.git
synced 2024-11-23 19:31:28 +00:00
Updated Performance (markdown)
parent
22317cd714
commit
5c4c4c728b
|
@ -41,6 +41,8 @@
|
||||||
|
|
||||||
## Comparison
|
## 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:
|
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>
|
<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
|
<b> 110K</b> 15740 <b> 4348</b> 2460 S 0.1 nnn -t d
|
||||||
</pre>
|
</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>
|
<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
|
$ 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
|
<b> 582K</b> 2428 <b> 2240</b> 4 S 0.0 nnn-static -cdDEnQrux -t d /usr/bin // 1.5K files
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
Results with `netbsd-curses` and `musl libc` (1950 files):
|
#### musc libc + netbsd-curses vanilla
|
||||||
|
|
||||||
|
Results with 1950 files:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
$ musl-gcc -O3 -DNORL -I../netbsd-curses/libcurses -o nnn-shared src/nnn.c -Wl,-Bsymbolic-functions -L/opt/netbsd-curses -lcurses -lterminfo
|
$ musl-gcc -O3 -DNORL -I../netbsd-curses/libcurses -o nnn-shared src/nnn.c -Wl,-Bsymbolic-functions -L/opt/netbsd-curses -lcurses -lterminfo
|
||||||
|
|
Loading…
Reference in a new issue