Re: Eu vs PowerBasic

new topic     » goto parent     » topic index » view thread      » older message » newer message

with euphoria 3.1 on inspiron 1501 laptop with ADM athlon 64x2 I get
3 seconds not translated
2 seconds translated

Jacques

useless said...

Choices of programming languages came up in an irc channel, and PowerBasic was of course mentioned. I had not looked at it in a while, so i re-looked at it. Their little test on

http://www.powerbasic.com/products/pbdll32/default.asp

looked impressive: "On an AMD 64 CPU,.....(WinXP Pro). Same source code, line for line. No attempt to minimize any background tasks. Elapsed time: 0.209 seconds."

So i converted it to Eu, and gave it a try.

    without warning 
    without trace 
    object junk 
    atom x, y, t 
    x = 1 
    y = 1.000001 
for repeatloop = 1 to 10 do     
    t = time() 
    for i = 1 to 100000000 do 
        x = x * y 
    end for 
    t = time() - t 
    puts(1,sprintf("%d",t)&"\n") 
end for     
junk = gets(0) -- whereafter the program terminates 

Running Eu v3.1 and v4.a, i got these numbers for 10 iterations of the code, each number is one iteration, times are in seconds:

v3.1 V4.0.a
5 4
6 4
6 5
6 5
5 5
5 5
6 5
48 44
48 48
48 48

Computer used is a P4 2.4ghz with 1gb of ram, running winxp sp2. Tis a far yelp, cry, scream from their 0.209 seconds. What's going on?

useless

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu