Preparing for a performance benchmark
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:

Performance with BLAS and LAPACK
Here, you will run the linalg_benchmark.py
script with BLAS and LAPACK. Connect to the t2.micro instance where you have this configuration, and run the script as shown in the previous section.
The following are the results of the run with dim = 100
:

The following are the results of the run with dim = 500
:

Performance with OpenBLAS
Here, you will run linalg_benchmark.py
script with OpenBLAS. Connect to t2.micro instance where you have this configuration, and run the script as shown in the previous section.
The following are the...