sandin Posted January 7, 2009 Share Posted January 7, 2009 (edited) This is application that calculates π (Pi) with 2 different formulas, in first one, the calculation of the formula should perform only 1 core of your CPU, and in the other formula both cores participate in calculation, unfortunately AutoIt is limited to only 15 decimals, though you will never need more than first 4 dec. of Pi number The less time in calculation you get, the better your CPU is, you may post your results here if you like.Even if it's not working perfectly (cores ratio is not perfect), at least it has pretty gui, and it was fun building it.Many thanks to MrCreator for his ControlHover UDF LINK, many thanks to UEZ for his text on GDI+ LINK, many thanks to monoceres for sharing his knowledge on GDI+, many thanks to n3nE for help, and everyone else on General Help and Support.script requires <GUICtrlSetOnHover_UDF.au3> by MrCreator which can be downloaded here, or from his thread: LINKEdit: I forgot to add: GDI+ is working even if the user is moving window Edit2: "Please wait" on the beginning of the script is obtaining CPU name, it's slow operation, so I gave it it's own gui before main gui pops up =.=Edit3: Changed single core test pi formula to the one Super PI uses LINKprevious downloads: 140GUICtrlSetOnHover_UDF.au3CPU_Benchmark.au3 Edited February 3, 2009 by sandin genius257 1 Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
Innovative Posted January 7, 2009 Share Posted January 7, 2009 What does this do ? Link to comment Share on other sites More sharing options...
BrettF Posted January 7, 2009 Share Posted January 7, 2009 Calculates pi and times it... All done with a very pretty GUI... My Results: Test: Dual/Quad Core optimization Your time: 27.2902 sec π (pi) result: 3.14159265358979 Your CPU: Intel(R) Pentium(R) III Xeon processor Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
sandin Posted January 7, 2009 Author Share Posted January 7, 2009 (edited) it calculates PI number with complicated formula, thus overloading your CPU, and it measure the time required for your CPU to calculate pi, less time means better CPU. Benchmark means testing hardware to see which one is better, so, you can test your CPUs and compare results to other people...Not the most useful tool, but it was fun building it edit: typo Edited January 7, 2009 by sandin Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
UEZ Posted January 7, 2009 Share Posted January 7, 2009 (edited) ...Many thanks to MrCreator for his ControlHover UDF LINK, many thanks to EUZ for his text on GDI+ LINK, many thanks to monoceres for sharing his knowledge on GDI+, many thanks to n3nE for help, and everyone else on General Help and Support....Your are welcome Good work sandin My results:Test: Dual/Quad Core optimizationYour time: 23.8289 secπ (pi) result: 3.14159265358979Your CPU: Intel® Core2 Duo CPU T7300 @ 2.00GHzOne remark:You can use & "Your CPU: " & StringStripWS($processor_name, 7) in line 170 and 486 to compact the CPU output.And CPU usage during benchmark on my notebook for both CPU cores is "only" 50%UEZ Edited January 7, 2009 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 7, 2009 Share Posted January 7, 2009 Why doesn't my gui look like the one in your screenshots?? Are you keeping the working script for yourself? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
argumentum Posted January 7, 2009 Share Posted January 7, 2009 The less time in calculation you get, the better your CPU is, you may post your results here if you like.Test: Single Core optimizationYour time: 81.4924 secp (pi) result: 3.14159265358979Your CPU: Intel® Pentium® 4 CPU 3.00GHzTest: Dual/Quad Core optimizationYour time: 60.9427 secp (pi) result: 3.14159265358979Your CPU: Intel® Pentium® 4 CPU 3.00GHz---------------------------------------------------------Test: Single Core optimizationYour time: 107.9619 secp (pi) result: 3.14159265358979Your CPU: AMD Athlon XP 2200+Test: Dual/Quad Core optimizationYour time: 98.4637 secp (pi) result: 3.14159265358979Your CPU: AMD Athlon XP 2200+ Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Demonic Posted January 7, 2009 Share Posted January 7, 2009 Test: Dual/Quad Core optimization Your time: 18.5598 sec π (pi) result: 3.14159265358979 Your CPU: Intel® Core2 Quad CPU Q6600 @ 2.40GHz I'm a winnerrrrrr Very nice, I wish I could do awesome GUIs like that, but I can't even comprehend basic GDI+ :/ Link to comment Share on other sites More sharing options...
Before Posted January 7, 2009 Share Posted January 7, 2009 Nice! Does it work with two processors? (yes, I mean PROCESSORS, not cores) I got a dual-processor computer at home, (now at school) so I could test it if it doesn't work. Also, Does my RAM Memory make any difference in the results? Thanks, Beforez Link to comment Share on other sites More sharing options...
KJohn Posted January 7, 2009 Share Posted January 7, 2009 Your are welcome Good work sandin My results:Test: Dual/Quad Core optimizationYour time: 23.8289 secπ (pi) result: 3.14159265358979Your CPU: Intel® Core2 Duo CPU T7300 @ 2.00GHzOne remark:You can use & "Your CPU: " & StringStripWS($processor_name, 7) in line 170 and 486 to compact the CPU output.And CPU usage during benchmark on my notebook for both CPU cores is "only" 50%UEZ I have a C2D T7200 @2.00 GHz with 4MB L2 cache (667MHz FSB)... It's the older version of the T7300 (which has 4MB of cache, running on a 800Mhz FSB) but I get a result of 43 seconds.. The 7300 is a newer processor but nearly double the performance of the T7200?? I also have a brand new C2D P8400 @2.26GHz with 3MB L2 cache running on a 1066Mhz FSB.. The result on that is 35 seconds... (sounds right considering it's slightly faster than the T7200)So there is really no way you could have gotten a ~24 sec result on a T7300 (unless you OCed it to what.. 3.8Ghz?? and the T7300 is a notebook CPU at that). What's your windows performance index score for the CPU?As for the program itself: It hardly crosses 60% on both my cores on either of my laptops... How can it be a CPU benchmarking s/w then? Link to comment Share on other sites More sharing options...
sandin Posted January 7, 2009 Author Share Posted January 7, 2009 Your are welcome Good work sandin My results:Test: Dual/Quad Core optimizationYour time: 23.8289 secπ (pi) result: 3.14159265358979Your CPU: Intel® Core2 Duo CPU T7300 @ 2.00GHzOne remark:You can use & "Your CPU: " & StringStripWS($processor_name, 7) in line 170 and 486 to compact the CPU output.And CPU usage during benchmark on my notebook for both CPU cores is "only" 50%UEZtnx ya, I changed the stringstrip in line 471, and as for 50% of your CPU, I tried many methods of overloading CPU, and found out that complicated calculation formula would overload CPU the most, I couldn't make it 100% myself either, AutoIt is limited to only 15 decimals, if that could be changed I'm sure the script would overload CPU more than 50%Why doesn't my gui look like the one in your screenshots?? Are you keeping the working script for yourself? strange, I uploaded script with some modifications, try now.Nice!Does it work with two processors? (yes, I mean PROCESSORS, not cores)I got a dual-processor computer at home, (now at school) so I could test it if it doesn't work.Also, Does my RAM Memory make any difference in the results?Thanks, Beforeztnx There's only one way to find out, run the script and monitor CPU usage in task manager. No, ram shouldn't make much difference.I have a C2D T7200 @2.00 GHz with 4MB L2 cache (667MHz FSB)... It's the older version of the T7300 (which has 4MB of cache, running on a 800Mhz FSB) but I get a result of 43 seconds.. The 7300 is a newer processor but nearly double the performance of the T7200?? I also have a brand new C2D P8400 @2.26GHz with 3MB L2 cache running on a 1066Mhz FSB.. The result on that is 35 seconds... (sounds right considering it's slightly faster than the T7200)So there is really no way you could have gotten a ~24 sec result on a T7300 (unless you OCed it to what.. 3.8Ghz?? and the T7300 is a notebook CPU at that). What's your windows performance index score for the CPU?As for the program itself: It hardly crosses 60% on both my cores on either of my laptops... How can it be a CPU benchmarking s/w then?as for 60%, it's the same answer I gave to UEZ, and I stated this in the 1st post, but your results sounds little bigger then they should be, maybe some other high resource taker application was working on the background? Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
UEZ Posted January 7, 2009 Share Posted January 7, 2009 (edited) I have a C2D T7200 @2.00 GHz with 4MB L2 cache (667MHz FSB)... It's the older version of the T7300 (which has 4MB of cache, running on a 800Mhz FSB) but I get a result of 43 seconds.. The 7300 is a newer processor but nearly double the performance of the T7200?? I also have a brand new C2D P8400 @2.26GHz with 3MB L2 cache running on a 1066Mhz FSB.. The result on that is 35 seconds... (sounds right considering it's slightly faster than the T7200)So there is really no way you could have gotten a ~24 sec result on a T7300 (unless you OCed it to what.. 3.8Ghz?? and the T7300 is a notebook CPU at that). What's your windows performance index score for the CPU?As for the program itself: It hardly crosses 60% on both my cores on either of my laptops... How can it be a CPU benchmarking s/w then?It is a Dell Latitude D830 with 2GB memory and I tested it on Vista x32 without SP1.The perfomance index - base score is 3,4:Processor Intel® Core2 Duo CPU T7300 @ 2.00GHz 4,9Memory 2,00 GB 4,8Graphics NVIDIA Quadro NVS 140M 3,4Gaming graphics 1022 MB Total available graphics memory 4,4Primary hard disk 13GB Free (110GB Total) 5,2UEZ Edited January 7, 2009 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Pain Posted January 7, 2009 Share Posted January 7, 2009 (edited) Wow, this looks sweet. I modified it some to work on version 3.2.10.0 and got same result as AdmiralAlkex.After looking at the code I noticed a function that wasn't in 3.2.10.0._GDIPlus_GraphicsDrawImageRect($graphics, $bitmap, 1, 1, $width-10, $height-10)so I replaced it with_GDIPlus_GraphicsDrawImageRectRect($graphics, $bitmap, 1, 1, $width-10, $height-10, 0, 0, $width-10, $height-10)The last parameters (bold) caused the problem so I played around with them and it worked like a charm.My result:Test: Single Core optimizationYour time: 71.4137 secp (pi) result: 3.14159265358979Your CPU: AMD Athlon 64 Processor 3000+ Edited January 7, 2009 by Pain Link to comment Share on other sites More sharing options...
youknowwho4eva Posted January 7, 2009 Share Posted January 7, 2009 (edited) Test: Single Core optimization Your time: 37.9272 sec π (pi) result: 3.14159265358979 Your CPU: Intel® Core2 Quad CPU Q6600 @ 2.40GHz Test: Dual/Quad Core optimization Your time: 34.7871 sec π (pi) result: 3.14159265358979 Your CPU: Intel® Core2 Quad CPU Q6600 @ 2.40GHz hmmm 3.2 seconds P.S. I really like the gui P.S.P.S. I looked through the code real quick, but I don't see it popping out (probably wouldn't know if I did see it) but what method are you using to calculate pi? Edited January 7, 2009 by youknowwho4eva Giggity Link to comment Share on other sites More sharing options...
sandin Posted January 7, 2009 Author Share Posted January 7, 2009 tnx for positive feedback (for the GUI), but as for benchmarking itself... I wish it could peduorm better, dunno how to accomplish Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
Paulchen Posted January 7, 2009 Share Posted January 7, 2009 Nice GUI ;-) Test: Single Core optimization Your time: 36.0148 sec π (pi) result: 3.14159265358979 Your CPU: Intel® Core2 Duo CPU T7500 @ 2.20GHz Test: Dual/Quad Core optimization Your time: 21.2709 sec π (pi) result: 3.14159265358979 Your CPU: Intel® Core2 Duo CPU T7500 @ 2.20GHz Link to comment Share on other sites More sharing options...
youknowwho4eva Posted January 7, 2009 Share Posted January 7, 2009 (edited) lol I just noticed, the difference is 3.1401. The difference is almost pi lol. Edit: My results that is Edited January 7, 2009 by youknowwho4eva Giggity Link to comment Share on other sites More sharing options...
Ev0lving Posted January 7, 2009 Share Posted January 7, 2009 great gui... my results Test: Dual/Quad Core optimization Your time: 17.8013 sec π (pi) result: 3.14159265358979 Your CPU: Intel® Core2 Quad CPU Q6600 @ 2.40GHz Link to comment Share on other sites More sharing options...
ptrex Posted January 7, 2009 Share Posted January 7, 2009 @sandin, very nice !! Especially the GUI Regards, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
sandin Posted January 7, 2009 Author Share Posted January 7, 2009 thank you all for positive feedback lol I just noticed, the difference is 3.1401. The difference is almost pi lol. Edit: My results that is lolz, another formula for pi (for your pc): $pi = $single_core_time - $dual_core_time Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now