How to test a specific CPU core in Linux

Install the stress-ng package an run the below command:

taskset -c 1 stress-ng --cpu 1 --timeout 60s --metrics-brief