Update And Install The Stress Software:

sudo apt update
sudo apt install stress
pip3 install stressberry --user

Make A Folder To Store The Test Results:

mkdir temptest
cd temptest

To Start The Stress Test On The Pi:

stressberry-run -d 300 -i 300 -c 4 test.out

When Test Is Done:

stressberry-plot test.out -f -d 300 -f -l 500 1600 -t 30 90 -o test.png --not-transparent

Settings That Can Be Changed:
 
"-i 300" Idle Time In Seconds Before And After Stress Test
"-d 300" Stress Test Time In Seconds
"-c 4" Number Of Cores
"test.out" Filename
"test.png" Chart Filename
"-f" Plot CPU Frequency
"-l 500 1600" Frequency Min/Max Limits
"--not-transparent" Background Opaque