Search found 8 matches

by davies
Thu Jan 29, 2004 2:56 pm
Forum: Coding Questions
Topic: Windows vs Linux PureBasic speed
Replies: 1
Views: 1080

Windows vs Linux PureBasic speed

Hi,

Thanks to everyone who helped with my question regarding the speed of PureBasic. I understand now that it is as fast as anything else, particularly is ASM is used in calculation-intensive loops.

The next question is, in terms of raw speed (i.e., floating point calculations), would the compiled ...
by davies
Tue Jan 27, 2004 3:13 pm
Forum: Coding Questions
Topic: Speed of PureBasic
Replies: 54
Views: 18224

Hi Danilo,

Thanks for the reply. In fact, the example I gave can be calculated straight away (as shown below) so do you think the VB and directASM versions are doing that instead of the actual loops?

The following code:

yy=1.000001
zz=1
For x=1 to N
zz = zz * yy
Next x

is (off the top of my ...
by davies
Tue Jan 27, 2004 11:01 am
Forum: Coding Questions
Topic: Speed of PureBasic
Replies: 54
Views: 18224

Hi Danilo,

Many thanks for testing the code out for me. Yes, I used a "Double" variable for the calculation in VB.

Here is what I get on my 2.4 GHz P4 system:

PB: 110 ms
directASM: 30 ms
VB: 30 ms

That's very interesting. It seems that VB and directASM are the same, at least or this very simple ...
by davies
Tue Jan 27, 2004 8:57 am
Forum: Coding Questions
Topic: Speed of PureBasic
Replies: 54
Views: 18224

Hi everyone,

Thanks for all the replies but I'm still waiting for somebody to let me know how long the example floating point calculation takes in PureBasic.

As I mentioned, I only have the evaluation version and thus have no chance to test the speed myself. I have run the same code in VB and ...
by davies
Mon Jan 26, 2004 3:09 am
Forum: Coding Questions
Topic: Speed of PureBasic
Replies: 54
Views: 18224

Hi everyone,

Thanks for all the replies but there still doesn't appear to be any definitive answer. Having now spent a few days looking for fast BASIC compilers it seems the following claim to be very quick:

PureBasic
PowerBasic
HotBasic

As mentioned before, unlike most users, I am only ...
by davies
Sat Jan 24, 2004 6:19 pm
Forum: Coding Questions
Topic: Speed of PureBasic
Replies: 54
Views: 18224

Hi,

Thanks for all the replies. Maybe I should explain my problem further...

At the moment I'm using VB for some physics simulations where all the important variables are (in VB-speak) doubles. The example I gave was very simple but essentially the simulation really does involve simple floating ...
by davies
Fri Jan 23, 2004 11:14 am
Forum: Coding Questions
Topic: Speed of PureBasic
Replies: 54
Views: 18224

Hi Iria,

Thanks for the reply but I searched the forums and nearly all the benchmarks seems to concern integer functions.

I'm specifically interested in floating point maths for some physics simulations I'm doing.
by davies
Fri Jan 23, 2004 5:23 am
Forum: Coding Questions
Topic: Speed of PureBasic
Replies: 54
Views: 18224

Speed of PureBasic

Hi,

I was trying to find out how fast PureBasic is compared to other BASIC compilers (e.g., VB, PowerBASIC). Using the trial version I tried to run the following simple programme for a 100 million iteration of a float calculation:

Global xx.l, yy.f, zz.f

yy.f = 1.000001
zz.f = 1

For xx.l = 1 ...