I've searched the net and came across the Ubuntu wiki saying
stress-ng --matrix 0
is supposed the best. But there are dedicated stressors for CPU and RAM (looking at man).
Any ideas which one is the best to use? Thank you
You can install
sudo apt install stress
Then call it with:
stress --cpu 8 --io 4 --vm 4 --vm-bytes 1024M --timeout 10s
On my conky display notice how:
stress --help for a full list of options.
A commentator requested posting the entire conky script which I did here: conky transparent