//cpu
[top]
[gprof]
[perf]
perf record -g -e cpu-clock program
perf report -g
//network bandwidth
[iperf3]
//only support single thread
//client
iperf3 -B host -c serverhost -p 10000 -P 2 -f Mbits -t 5 -i 5
iperf3 -B host -c serverhost -p 10000 -P 2 -f Mbits -t 5 -i 5 -R
//server
iperf3 -B host -s -p 10000 -f Mbits -i 5