Page 3 of 5

Posted: Thu Nov 25, 2004 9:34 pm
by Max.²
Bonne_den_kule wrote:Looks like it is big difference between a AthlonXp 2400 and 2500. I have only 512MB, cheap memory. Here is my results.
Guess it mainly depends on the frontside bus and the chipset. XP 2500 are generally FSB 333, while XP 2400 I think were available at 266 and 333.

I got an XP 2400/266 and therefor was a bit surprised by traumatic's results, as XP 1600 always are 266 too. Memory is pretty fast for my machine (CL2) so probably the OS and the chipset jump in.

Posted: Fri Nov 26, 2004 3:17 pm
by Bonne_den_kule
Max.² wrote:
Bonne_den_kule wrote:Looks like it is big difference between a AthlonXp 2400 and 2500. I have only 512MB, cheap memory. Here is my results.
Guess it mainly depends on the frontside bus and the chipset. XP 2500 are generally FSB 333, while XP 2400 I think were available at 266 and 333.

I got an XP 2400/266 and therefor was a bit surprised by traumatic's results, as XP 1600 always are 266 too. Memory is pretty fast for my machine (CL2) so probably the OS and the chipset jump in.
I am using 333 fsb (166hz). but 2700 512 mb ram (one block).

Posted: Fri Nov 26, 2004 11:11 pm
by fsw
Excellent work 8)

BTW: I don't want to offend anybody, specially not Fred - HI FRED - but shouldn't stuff like that be covered by the PureBasic compiler :?:
Under 'compiler options', in the editor, it suggests that it's able to OPTIMIZE for ALL CPU's, MMX, SSE, SSE2 and 3DNOW, but actually it seems it doesn't 8O

:?

Posted: Sat Nov 27, 2004 2:27 am
by fsw
Forgot to post my results:
  • ---------------------------
    Test Results 1st run:
    ---------------------------
    --- 64 MB tranfer test ---
    AMD Function : 281
    Pure Function : 4606
    AMD Function is 16 times faster.

    --- 1 MB tranfer test ---
    AMD Function : 2464
    Pure Function : 61278
    AMD Function is 24 times faster.

    --- 100kb tranfer test ---
    AMD Function : 30
    Pure Function : 5538
    AMD Function is 184 times faster.
Impressive 8O
  • ---------------------------
    Test Results 2nd run:
    ---------------------------
    --- 64 MB tranfer test ---
    AMD Function : 251
    Pure Function : 3395
    AMD Function is 13 times faster.

    --- 1 MB tranfer test ---
    AMD Function : 2473
    Pure Function : 55310
    AMD Function is 22 times faster.

    --- 100kb tranfer test ---
    AMD Function : 20
    Pure Function : 5087
    AMD Function is 254 times faster.
Even More Impressive 8O

SONY Notebook Duron950, 256mb ram, WinXP

Posted: Mon Nov 29, 2004 12:42 pm
by Fred
That's indeed impressive results. As FSW, I will add this optimization to the CopyMemory() command, so it can take advantage of new CPU trough the compiler switch.

Posted: Mon Nov 29, 2004 12:53 pm
by GeoTrail
Hi Fred.
It's great to see someone like you taking note of tests we users do and do something about it. More developers should be alot more like you ;)

Posted: Mon Nov 29, 2004 8:05 pm
by fsw
Fred wrote:That's indeed impressive results. As FSW, I will add this optimization to the CopyMemory() command, so it can take advantage of new CPU trough the compiler switch.
8)
Thanks

Posted: Mon Dec 06, 2004 11:15 pm
by coma
Excellent El_Choni, if you have any other tips like this..... :)

Posted: Tue Dec 07, 2004 9:45 am
by akee
GeoTrail wrote:Hi Fred.
It's great to see someone like you taking note of tests we users do and do something about it. More developers should be alot more like you ;)

That's why PB is a "kick butt" translator. I hardly click on my Visual Studio icon these days... :wink:

Posted: Fri Dec 17, 2004 4:01 am
by Dreglor
WOAH...
isn't there anything that that some one can't opimaize!

Posted: Fri Dec 17, 2004 11:46 am
by Psychophanta
Fred wrote:That's indeed impressive results. As FSW, I will add this optimization to the CopyMemory() command, so it can take advantage of new CPU trough the compiler switch.
Hey, nice :D
But don't forget, please :wink:

Posted: Fri Dec 17, 2004 11:59 pm
by Froggerprogger
Here are results on an Pentium Mobile 2,4GHz 512 DDR:
--- 64 MB tranfer test ---
AMD Function : 200
Pure Function : 3175
AMD Function is 15 times faster.

--- 1 MB tranfer test ---
AMD Function : 2814
Pure Function : 53356
AMD Function is 18 times faster.

--- 100kb tranfer test ---
AMD Function : 40
Pure Function : 581
AMD Function is 14 times faster.
Cool!
2814ms instead of 53356ms !

Posted: Sat Dec 18, 2004 5:46 pm
by newbie
AMD Athlon XP 2000+ (+DDR 333Mhz)

Image

hooah :D

EDIT : I have a question :
Does that optimization means that it is by now faster to write :

Code: Select all

var1.s = "toto"
var2.s = ""

CopyMemoryAMD(@var1, @var2, 4)
than to use the normal way :

Code: Select all

var2 = var1
??

Posted: Sat Dec 18, 2004 8:31 pm
by El_Choni
BTW, Fred, if you plan to add this routine to PB, remember to include the "align" directives I had to comment in the code due to the fact that "align" is redefined by PB to be used only in the data section.

Regards,

Posted: Tue Dec 21, 2004 10:46 pm
by Andras
AMD-Athlon XP 2400+


---------------------------
Test Results
---------------------------
--- 64 MB tranfer test ---

AMD Function : 94

Pure Function : 1734

AMD Function is 18 times faster.



--- 1 MB tranfer test ---

AMD Function : 578

Pure Function : 27156

AMD Function is 46 times faster.



--- 100kb tranfer test ---

AMD Function : 16

Pure Function : 406

AMD Function is 25 times faster.