Linux performance tools for measuring

Those perf tools are a dream:
https://www.brendangregg.com/linuxperf.html
and visualizing it via Flame Graphs is great:
https://www.brendangregg.com/flamegraphs.html