![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Coding Post your Coding for opensource projects here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
Here is a new version of the speed testing program. This one allows the pipeline to fill up and as such will give different results than before. This test seems to run a lot better for me which suggests the the P4 pipeline is quite nasty for floating point. Here are my numbers for the new program (1.8Ghz P4) Integer: 1.462 Single: 1.311 Double: 1.292 As you can see, the numbers are a lot closer now. This makes floating point worth it. PS: The attached program was compiled unoptimized and compiled for a 386 so anyone should be able to run it. If compiled optimized the three numbers are basically equal. |
|
#2
| ||||
| ||||
| P3 750 2.453 2.390 2.438
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#3
| ||||
| ||||
| That's better. Now both you and I are seeing around the same speed for all three tests. This goes to prove that pipelining and memory access can make a big difference in the results. This also makes me comfortable that floating point should be OK to use in the cutting simulator. Thanks!
|
|
#5
| ||||
| ||||
| Thanks MrBean! That's what I like to see: The floating point version was actually faster than the integer version! That's esp good because the floating point unit has a seperate pipeline from the main processor. That means that while the FPU is crunching on numbers the integer portion can do other things (branching, loops, sending data to the video card, etc). This settles it. I hope to start coding up a test application w/ the floating point array idea sometime tomorrow. Hopefully I'll have something else people can run in a few days. |
| Sponsored Links |
|
#7
| |||
| |||
| I dont know what this is but... Dothan 1.7ghz Time for int test: 1.041000 Time for float test: 0.841000 Time for double test: 0.821000 Jon
__________________ CNC Mini Lathe Plans and Rotary Table kits: http://jfettigmachines.com |
|
#9
| ||||
| ||||
| Thanks again all! This is providing some interesting data. The results will be inconsistant because it's running in windows so background tasks and random fluctuations in the space-time continuum effect the results (that or random task switching...) Single and Double are usually the same speed or very close. Chances are that the processor's FPU is all double precision inside (actually I think some FPU's are 80 bit floating point inside) and just modifies the precision on the way out for single precision.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |