Simple Linux Benchmarking Test to Perform Throughout Install

I have a script that installs a lot of software. For debugging purposes I am looking for a way of simply benchmarking my system after each install to see which piece of software cripples my server.

NPM installs are Godly slow.

Answer

I think it would be a better strategy to find the service or process that is causing the problem. But to answer your question as asked you could put something like this after each install in your script.

top -n 10 -b > top-outputAfterXinstall.txt

Replace X with the name of the software you just installed. This will give you a good idea of how the installs are impacting your memory and cpu performance, as well as which process are causing problems.

Attribution
Source : Link , Question Author : ProfessorManhattan , Answer Author : Eric

Leave a Comment