For each instance and configuration, navigate to your Home directory and create a folder named py_scripts:
Create a file named linalg_benchmark.py with the following command and paste the contents:
After pasting the contents, type :, then type wq!, and Enter to save and quit:
Now you can run this file with the following command:
For Anaconda distribution, you will run the script with the following command: