Strange speed up with unused variables

Just starting out? Need help? Post your questions and find answers here.
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: Strange speed up with unused variables

Post by Saki »

My suspicion was in itself the same as Nick's.
There are probably shifts, because the unused variables are not removed.
地球上の平和
User avatar
NicTheQuick
Addict
Addict
Posts: 1227
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Strange speed up with unused variables

Post by NicTheQuick »

Btw: Why do I have such low values? Is the code that much faster on Linux or what could be the reason? I don't think that my CPU is much faster than any of yours.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: Strange speed up with unused variables

Post by Saki »

Hi, yes, I had also expected more from it.
I don't have native Linux here unfortunately, only a VM on an old i7, for the other OS except Windows.
I have turned off the Core Boost.
With Core Boost, you also need water cooling with this thing or the fan will annoy you endlessly with eternal up and down.
But even the water cooling has fans, which are far less annoying but still a clear up and down.
Practically in normal operation, the boost doesn't bring anything either.
With my medium graphics card, the thing runs extremely fast in games, which is probably the primary use case for this CPU.
Unfortunately, I do not game is only because of the GPU support.

With boost ~ 715 / 870
It has become quieter and quieter with the newer bios versions.
With the first Bios versions I thought there is something broken, so crazy was that.
Last edited by Saki on Fri May 07, 2021 7:12 pm, edited 1 time in total.
地球上の平和
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: Strange speed up with unused variables

Post by cas »

Saki wrote: Fri May 07, 2021 3:44 pm Hi cas

Without Thread save 5014 / 42.855
With Thread save 5029 / 62.086
Can you run it without debugger (compiler -> compile without debugger) and post number of passes you get for each case? Thanks
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: Strange speed up with unused variables

Post by Saki »

Sorry, I was still at work and not with the thing.

Non TS :
3574 / 5000 / 1.399
3544 / 5000 / 1.411
3539 / 5000 / 1.413

TS :
3573 / 5000 / 1.399
3590 / 5000 / 1.393
3591 / 5001 / 1.393
地球上の平和
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: Strange speed up with unused variables

Post by cas »

Thanks for testing. It looks like i am the only one with a huge difference for that code snippet.
Cyllceaux
Enthusiast
Enthusiast
Posts: 469
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: Strange speed up with unused variables

Post by Cyllceaux »

cas wrote: Fri May 07, 2021 10:07 pm Thanks for testing. It looks like i am the only one with a huge difference for that code snippet.
No, I have this problems too. (I answered your post)
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: Strange speed up with unused variables

Post by cas »

I was talking about this code snippet from other thread:
cas wrote: Fri May 07, 2021 3:07 pm viewtopic.php?p=567877#p567877
Post Reply