I just got a new laptop, and after installing MinGW, the execution time of simple programs is atrocious. Below is a simple for-loop I wrote.
#include <iostream>
using namespace std;
int main()
{
for(int i=0;i<10000;i++)
{
cout<<i<<endl;
}
return 0;
}
On my laptop with a ryzen 9 4000 cpu running Windows, it took 18.9 seconds to execute. I have tried using different IDEs and reinstalling MinGW, but the same problem still persists.
Any ideas on how to make this run faster?