Icon representing a recipe

Recipe: Test your PC power

created by Bruno Kestemont

Profile


Name
Test your PC power
ID
46929
Shared with
Public
Parent
None
Children
None
Created on
September 21, 2013 at 11:16 AM UTC
Updated on
September 21, 2013 at 11:16 AM UTC
Description

Test your PC on Contest http://fold.it/portal/node/995975

Best for


Code


--Test your PC power by Bruno Kestemont --Use for contest : http://fold.it/portal/node/995975 startRecTime=os.clock() startRecDate=os.date() p=print --"quicker" print segCnt=structure.GetCount() stopRecTime=os.clock() Testtimerec=0 firstlooptime=0 buffer= 600-- in seconds buffermin=buffer/60 -- in minutes function Testtime() stopRecTime=os.clock() Testtimerec=stopRecTime-startRecTime -- in seconds return Testtimerec end function round(x)--cut all afer 3-rd place return x-x%0.001 end function round1(x)--cut all afer 1-rd place return x-x%0.1 end function Score() return current.GetEnergyScore() end startingscore= Score() -- to get track on latest attempt maxScore= Score() s=round(startingscore) notelibre={} -- list of free segments notesave={} -- backup of notes testresult="" result=0 loopnr=0 function noteread(i) local Note=structure.GetNote(i) if #Note>0 and Note:find("Score") then notelibre[i]=false notesave[i]=Note p(Note) else notelibre[i]=true notesave[i]='' end return end function readarchives() print("Previous results") for i= 1 , segCnt do noteread(i) end end function whriteresult() testresult=startRecDate.."/ Score:"..result.."in "..loopnr.." loops. Result: "..firstlooptime.." sec / 1st loop" for i= 1 , segCnt do if notelibre[i] then p("Whriting in note"..i) structure.SetNote(i, testresult) break end end end function Testing() repeat local gl=Score() loopnr=loopnr+1 if loopnr <50 then selection.SelectRange(loopnr,(2*loopnr)) structure.LocalWiggleSelected(1) selection.DeselectAll() elseif loopnr <300 then selection.SelectRange(loopnr,(10+loopnr)) structure.LocalWiggleSelected(1) selection.DeselectAll() elseif loopnr <600 then selection.SelectRange(1,loopnr) structure.LocalWiggleSelected(1) structure.ShakeSidechainsSelected(1) selection.DeselectAll() else structure.WiggleAll(1) structure.ShakeSidechainsAll(1) end Testtime() timesec=round1(Testtimerec) local glr=round(Score()-gl) local gr=round(Score()-s) print(loopnr.." loops in "..timesec.." sec. / "..buffer..". Gain= "..glr.." / "..gr) if loopnr==1 then firstlooptime=Testtimerec print("Power result:"..firstlooptime.." sec./ 1st loop") if firstlooptime>buffer then print("Too slow for this test, try on a smaler puzzle") end end until Testtimerec>buffer end function Cleaning() --p("Cleaning") selection.DeselectAll() freeze.UnfreezeAll() band.DeleteAll() behavior.SetClashImportance(1) behavior.SetSlowFiltersDisabled(false) recentbest.Save() end function keepingnotes() end function MAINtest() p("Test your PC power by B.Kestemont") p("Date: "..startRecDate) if segCnt<600 then p("WARNING: Not intended for this puzzle. Please use only for Contest") end p("##################") readarchives() p("##################") p("Testing pc ... Go for "..buffermin.." minutes") p("Don't touch or cancel, be patient waiting results") puzzle.StartOver() startingscore= Score() -- to get track on latest attempt maxScore= Score() s=round(startingscore) for i= 1, segCnt do local archive=notesave[i] structure.SetNote(i, archive) end Cleaning() Testing() recentbest.Restore() p("...") result=round(Score()) p("Result= "..result) whriteresult() end MAINtest()

Comments


Bruno Kestemont Lv 1

With less precise wiggle enabled, the result is as follows:
CPU time first loop: 10.6 sec against 13.2sec with default Wiggle (see above)
Result report: 15141.234 against 15125.471 pts
Total gain: 31.557 against 15.794 (more loops in same time 10' gains more per unit of time)
68 loops instead of 49 loops

Computer:

Constructor: ICT Service desk
Processor: Intel Core i3-2350M CPU @ 2.30 GHz 2.30 GHz
RAM: 4.00 Go
System: 64 bits
OS: Windows 7 Enterprise, Service Pack 1

Conclusion:: Less Precise Wiggle is about 30% faster and more rentable per unit of time on big proteins

TESTIFICAT Lv 1

1st loop 18 seconds.
Result 15121.298
11.621 total gain
38 loops.

1 client

iMac OS X 10.5.8
2.4 GHz Intel Core 2 Duo
1 GB RAM
Processor speed 2.4 GHz

TESTIFICAT Lv 1

10.87 seconds first loop
15125.735
16.058 total gain
54 loops.

The previous one was while working on the internet.

Bruno Kestemont Lv 1

For any own tests. (or you can create another contest - but 10 minutes might be to little for small puzzle and a powerfull computer - just edit the recipe then).

Bruno Kestemont Lv 1

START SCORE IS LOWER With NC=> just compare loops and gain

Intel Core Duo T2300 1.66GHz
CPU time first loop: 26.8 sec
Result report: 11318.390 pts
Total gain: 5.062
25 loops

1 client

Computer:

Vaio vgn-sz2M/B
Processor: Intel Core Duo T2300 1.66GHz
1 processor, 2 cores
RAM: 1GB/Go DDR2 SDRAM (533MHz)
Graphics: NVIDIA geforce Go 7400 with turbochache supporting 128MB/Mo
OS: Ms Windows XP home edition

Conclusion: gain is higher in NC with Low & no cut bands

Bruno Kestemont Lv 1

ntel Core Duo T2300 1.66GHz -NewChapter Low (Enable cut bands)
START SCORE IS LOWER With NC=> just compare loops and gain

Intel Core Duo T2300 1.66GHz
CPU time first loop: 33.9s
Result report: 11314.846
Total gain: 1.518 Much less than with disabled cut bands !
16 loops faster than disabled cut bands

1 client

Computer:

Vaio vgn-sz2M/B
Processor: Intel Core Duo T2300 1.66GHz
1 processor, 2 cores
RAM: 1GB/Go DDR2 SDRAM (533MHz)
Graphics: NVIDIA geforce Go 7400 with turbochache supporting 128MB/Mo
OS: Ms Windows XP home edition

Conclusion: gain is higher in NC with Low & no cut bands

Bruno Kestemont Lv 1

Intel Core Duo T2300 1.66GHz -NewChapter Low (Disable cut bands)

START SCORE IS LOWER With NC=> just compare loops and gain

Intel Core Duo T2300 1.66GHz
CPU time first loop: 33.9s
Result report: 11316.551
Total gain: 3.223 less than Low
23 loops slower than Low

1 client

Computer:

Vaio vgn-sz2M/B
Processor: Intel Core Duo T2300 1.66GHz
1 processor, 2 cores
RAM: 1GB/Go DDR2 SDRAM (533MHz)
Graphics: NVIDIA geforce Go 7400 with turbochache supporting 128MB/Mo
OS: Ms Windows XP home edition

Conclusion: gain is higher and faster in NC with Low & no cut bands

Bruno Kestemont Lv 1

Intel Core Duo T2300 1.66GHz -NewChapter HIGH (Disable cut bands)

START SCORE IS LOWER With NC=> just compare loops and gain

Intel Core Duo T2300 1.66GHz
CPU time first loop: 271 sec. (oops, correction above: was 28, 34, 32 resp. for former tests above)
Result report: 11314.640
Total gain: 0.235 much less than Low and even Medium
16 loops slower than Low and Medium

1 client

Computer:

Vaio vgn-sz2M/B
Processor: Intel Core Duo T2300 1.66GHz
1 processor, 2 cores
RAM: 1GB/Go DDR2 SDRAM (533MHz)
Graphics: NVIDIA geforce Go 7400 with turbochache supporting 128MB/Mo
OS: Ms Windows XP home edition

Conclusion: Yield is higher with Lower & no cut bands
Preference is:
Cut bands unchecked > Enable cut bands
Low > MediumĀ Ā» High

Bruno Kestemont Lv 1

Cores: 4

"Windows performance" = 5.0
CPU: 6.9
RAM: 5.9
Graphic: 5.0
Game graphics: 6.3
HD: 5.9

1) Heavy conditions
3 clients (CPU usage >=100%) windows maximized.
All heavy Foldit settings possible (view everything, music, High Wiggle Power etc)

Result:

Score: 11329.335
Loops: 41
Total gain: 16.007
1 loop in 21.1 sec

2) Light conditions High Wiggle Power
1 client (CPU usage = 20-40%), window minimized
Light Foldit settings (no sound, view almost nothing) unless stil High Wiggle Power

Result:

Score: 11335.537
Loops: 110
Total gain: 22.209
1 loop in 6.4 sec

3) Light conditions Low Wiggle Power
1 client (CPU usage = 20-40%), window minimized
Light Foldit settings (no sound, view almost nothing) unless stil High Wiggle Power

Result:

Score: 11333.223
Loops: 73
Total gain: 19.905
1 loop in 6.2 sec