Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is an .exe slower than a .bas file?
#11
Thanks to all. I did a test with "whitetiger0990"'s code, but increase the count to 10000000, and the result is

.bas = 5.546s
.exe = 7.422s

maybe it is my computer.
Reply
#12
Whitetigers code (increased to 1000000) :
In the IDE: 2.421875s
stand-alone: 2.371094s

It might be that the loops are already fully optimized.

But as you can see it's faster, even if it's just a little.
What version of windows are you runnig? Might be that, windows screwing with your DOS programs.
If running XP, have you configured your VM correctly? (I don't know how to configure it other than editing the _default.pif shortcut in the system folder, I don't use XP, ask some of the others)
Reply
#13
kc, are you using TameDOS or any other VDM?
Reply
#14
Thanks again for all your replies. The following is my setup:

Pentium 3 1G CPU with 512 RAM
Windows 2000 version 5.0 ( build 2195;Service Pack 4)
QuickBAsic Version 4.50

Z!re:

Could you please tell me what is your system setup, both hardware and software, coz it is very fast compare to mine.

I am sorry I am not a computer expert, what is VM?

I need to run this program to analyze some data and it could take a long time to perform, so if I can cut my time by from 7.422s down to 2.3710s, I would certainly go and buy some new hardware and software.

Once again appreciate any inputs.
Reply
#15
kc, give us your system config along with which software you're using to run the .exes
Reply
#16
I was using only a 10th of your A value....
You where using:
10000000
I used:
1000000

My spec.s:
AMD Duron 850MHz
128MB SDRAM
Windows 98SE
PDS 7.1
Reply
#17
BRUN45 contains routines common to all .exes. Thus using BRUN45 can make your .exes smaller, however in this day and age where disks are measured in gigabytes this is hardly nessecary.

Maybe when you run an exe a lot of stuff is set up before the code actually runs, thus a short program will seem slower? So if you try running a huge program then the .exe may be faster? Those are just guesses...
Reply
#18
Look at whitetigers code, we ran that, i got exe faster, and kc got it slower... that's just weird... He's even got a faster machine...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)