how to speed up your ubuntu code example
Example 1: acce;lerate ubuntu
sudo apt install preload
sudo add-repository ppa:apt-fast/stable
sudo apt update
sudo apt install apt-fast
Example 2: improve ubuntu 16.04 performance
sudo apt-get install preload