Skip to content

Instantly share code, notes, and snippets.

@friedmud
Last active July 19, 2018 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save friedmud/2dd0e9b08cf766c16b7cd95fbc74ceeb to your computer and use it in GitHub Desktop.
Save friedmud/2dd0e9b08cf766c16b7cd95fbc74ceeb to your computer and use it in GitHub Desktop.
thermal_test.C
#include <iostream>
#include <thread>
int main()
{
double stuff = 1.2;
int junk = 2;
for (unsigned long int i=0; i < 100000000; i++)
{
for (unsigned long int j=0; j < 100000000; j++)
{
stuff *= 1.3;
stuff += 2.2;
junk *= 2;
junk += 2;
}
}
std::cout << stuff << std::endl;
std::cout << junk << std::endl;
return 0;
}
@york-xtrem
Copy link

Hi @friedmud!

Could you publish the results here when you have them?
I know you're waiting for someone with the new macbook to run it ;)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment