measure (multi thread) CPU process MIPS with C++
Run these commands to building and runing binary:
"clang++ -pthread -o MIPS MIPS.cxx"
"./MIPS"
Run this code at below online compiler: https://rextester.com/HQA96838
If you want put CPU in stress and measure the real maximum MIPS, use MIPS-old.cxx code instead.