| Hardware: Celeron N4020 based Netbook (Dual Core, upto 2.8 GHz). 8 GB DDR4
|
|
|
| - VoidLinux - Linux 6.6.30_1 #1 SMP PREEMPT_DYNAMIC (cpufreq driver set to "ondemand").
|
| GCC 13.2.0, build-dir on tmpfs
|
|
|
| - Haiku - hrev58650-dirty
|
| GCC 13.3.0, build-dir on ramfs
|
|
|
| Only a Terminal open on all cases, showing the build.
|
|
|
| ================================================================================
|
|
|
| Unoptimized build:
|
| ------------------
|
|
|
| VoidLinux:
|
| real 2m2,848s / user 2m48,460s / sys 0m30,579s (configure + make)
|
| real 1m27,591s / user 2m26,344s / sys 0m18,396s (only make)
|
|
|
| hrev58650-dirty:
|
| real 3m34,956s / user 4m5,202s / sys 0m53,773s (configure + make)
|
| real 2m15.419s / user 3m19.413s / sys 0m25.121s (only make)
|
|
|
| hrev58650-dirty (2nd run, no idea why so slower):
|
| real 4m6.656s / user 4m3.801s / sys 0m54.204s (configure + make)
|
| real 2m46.508s / user 3m17.919s / sys 0m25.271s (only make)
|
|
|
| hrev58650-dirty (3rd run after reboot):
|
| real 3m43.697s / user 4m5.267s / sys 0m54.236s (configure + make)
|
| real 2m22.993s / user 3m18.769s / sys 0m25.187s (only make)
|
|
|
|
|
| --with-optimizations --with-lto:
|
| --------------------------------
|
|
|
| VoidLinux:
|
| real 36m10,192s / user 47m13,563s / sys 1m45,047s (configure + make)
|
| real 35m34,728s / user 46m51,400s / sys 1m32,636s (only make)
|
|
|
| hrev58650-dirty:
|
| real 57m0.203s / user 82m31.483s / sys 3m5.633s (configure + make)
|
| real 55m39.523s / user 81m45.073s / sys 2m36.630s (only make)
|
|
|
| ================================================================================
|
|
|
| Build script use on both Linux and Haiku:
|
|
|
| ```
|
| #!/bin/bash
|
|
|
| export LC_ALL="C"
|
| export BASECFLAGS="-pipe -D_BSD_SOURCE" # "-D_BSD_SOURCE" needed on Haiku
|
| export OPT="-Wall"
|
|
|
| optimizedBuild=true
|
|
|
| if $optimizedBuild; then
|
| export OPT+=" -O3"
|
| maybeWithOptimizations="--enable-optimizations --with-lto"
|
| else
|
| export OPT+=" -O0"
|
| maybeWithOptimizations=
|
| fi
|
|
|
| # make clean
|
|
|
| time ./configure --prefix=$HOME/foobar \
|
| $maybeWithOptimizations \
|
| --enable-shared \
|
| --with-ensurepip=no \
|
| --with-readline=editline \
|
| --with-system-expat \
|
| --with-system-libmpdec=no \
|
| --without-static-libpython
|
|
|
| echo "================================================================================"
|
|
|
| time make -j 2
|
| ```
|