jsk-ros-pkg / jsk_robot

jsk-ros-pkg/jsk_robot
https://github.com/jsk-ros-pkg/jsk_robot
73 stars 97 forks source link

[Unitree][cross] set make job num to CPU threads #1873

Open sktometometo opened 1 year ago

sktometometo commented 1 year ago

Make job number of make to number of CPU threads to make it adaptive for CPU number and make it faster on a machine with many CPU (e.g. mars)

Differnces between this branch and master is below. This experiment is done on mars.

Duration to run build_ros1_dependencies.sh

master

real 22m32.596s user 0m0.833s sys 0m2.247s

this branch

time ./build_ros1_dependencies.sh

real 15m32.281s user 0m0.940s sys 0m2.088s

Duration to run build_ros1.sh

master

real 19m7.476s user 0m2.100s sys 0m1.676s

this branch

real 16m43.714s user 0m2.018s sys 0m1.586s

sktometometo commented 1 year ago

Got some error, revert to draft