1# Binary Size 2 3*Preliminary* measurements of `wuffs genlib` libraries' binary size on x86_64 4are below. Lower is better. 5 6TODO: re-do these numbers as we've spun std/zlib out of std/deflate. 7 8 clang-dynamic: 9 -rwxr-xr-x 1 nigeltao eng 38352 Nov 9 22:59 libwuffs.so 10 -rw-r--r-- 1 nigeltao eng 22624 Nov 9 22:59 std-flate.lo 11 -rw-r--r-- 1 nigeltao eng 9456 Nov 9 22:59 std-gif.lo 12 13 clang-static: 14 -rw-r----- 1 nigeltao eng 32966 Nov 9 22:59 libwuffs.a 15 -rw-r--r-- 1 nigeltao eng 22648 Nov 9 22:59 std-flate.o 16 -rw-r--r-- 1 nigeltao eng 9480 Nov 9 22:59 std-gif.o 17 18 gcc-dynamic: 19 -rwxr-xr-x 1 nigeltao eng 42504 Nov 9 22:59 libwuffs.so 20 -rw-r--r-- 1 nigeltao eng 24776 Nov 9 22:59 std-flate.lo 21 -rw-r--r-- 1 nigeltao eng 13520 Nov 9 22:59 std-gif.lo 22 23 gcc-static: 24 -rw-r----- 1 nigeltao eng 39102 Nov 9 22:59 libwuffs.a 25 -rw-r--r-- 1 nigeltao eng 24728 Nov 9 22:59 std-flate.o 26 -rw-r--r-- 1 nigeltao eng 13536 Nov 9 22:59 std-gif.o 27 28 29## Comparison 30 31Below are some standard C libraries shipped as part of Debian Testing as of 32November 2017. The numbers aren't directly comparable, as these libraries have 33a richer API, especially in providing an encoder and not just a decoder. Still, 34it is a reference point for e.g. Wuffs (deflate + gzip + zlib) vs libz and 35Wuffs gif vs libgif. 36 37 dynamic: 38 -rw-r--r-- 1 root root 105088 Jan 29 2017 /lib/x86_64-linux-gnu/libz.so.1.2.8 39 -rw-r--r-- 1 root root 38816 Aug 1 16:06 /usr/lib/x86_64-linux-gnu/libgif.so.7.0.0 40 41 static: 42 -rw-r--r-- 1 root root 142810 Jan 29 2017 /usr/lib/x86_64-linux-gnu/libz.a 43 -rw-r--r-- 1 root root 51216 Aug 1 16:06 /usr/lib/x86_64-linux-gnu/libgif.a 44 45 46--- 47 48Updated on December 2017. 49