Very Fast Compiling

Everything else that doesn't fall into one of the other PB categories.
PureBaser
User
User
Posts: 33
Joined: Mon Apr 10, 2006 8:47 pm
Location: Berlin, Germany
Contact:

Very Fast Compiling

Post by PureBaser »

Hi there!

A Feature of PureBasic is, that

"PB is able to compile more than 300.000 Codes per minute on a P200"

My Question is, how I can check this out? There is any proof or something else? What Code is this?
PB 4 | WinXP_SP2
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

First you'll need 300,000 lines of code.

Then you'll need a p200.

Good luck with that.

On my 1ghz ageing desktop Japbe, which is massive, compiles in a couple of seconds.
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

GedB wrote:First you'll need 300,000 lines of code.

Then you'll need a p200.

Good luck with that.
ROFL
Good programmers don't comment their code. It was hard to write, should be hard to read.
PureBaser
User
User
Posts: 33
Joined: Mon Apr 10, 2006 8:47 pm
Location: Berlin, Germany
Contact:

Post by PureBaser »

The Code you can surely generate. And I have a P450. So I expect about 500.000 Code per minute...
PB 4 | WinXP_SP2
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

GedB wrote:First you'll need 300,000 lines of code.

Then you'll need a p200.
:D

@PureBaser - Did you get your 500kpm?
@}--`--,-- A rose by any other name ..
PureBaser
User
User
Posts: 33
Joined: Mon Apr 10, 2006 8:47 pm
Location: Berlin, Germany
Contact:

Post by PureBaser »

Not really... To Be honest, I've not enough time to write a few lines :wink:
PB 4 | WinXP_SP2
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

Not bad on my notebook(P4 2.4ghz) 2,34 seconds

Code: Select all

#Iteration=100000
OpenConsole()

PrintN("Creating testfile")
T1=ElapsedMilliseconds()
CreateFile(1,#PB_Compiler_Home+"\Compilers\testme.pb")
WriteStringN(1,"Messagerequester(" + Chr(34)+"info"+Chr(34)+","+Chr(34)+"Dummy of the day"+Chr(34)+",0):End")
M=#Iteration/3
For I=1 To M
 WriteStringN(1,"For t=0 to 1000")
 WriteStringN(1," P=42")
 WriteStringN(1,"Next")
Next
CloseFile(1)
T2=ElapsedMilliseconds()
PrintN(" created file with "+Str(#Iteration)+" lines in "+StrF((t2-t1)/1000,3)+" secs")
PrintN(" now compiling testfile.....")
T1=ElapsedMilliseconds()
r=RunProgram(#PB_Compiler_Home+"\Compilers\pbcompiler",#PB_Compiler_Home+"\Compilers\testme.pb /exe testme.exe","",#PB_Program_Wait)
T2=ElapsedMilliseconds()
PrintN("time To Compile "+Str(#Iteration)+" lines is "+StrF((t2-t1)/1000,3)+" secs")
t.s=Input()
DeleteFile(#PB_Compiler_Home+"\Compilers\testme.pb")
DeleteFile(#PB_Compiler_Home+"\Compilers\testme.exe")
CloseConsole()
End 
SPAMINATOR NR.1
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Rings , the tip you have wrote is buggy! It doesn't work here.

A functional version:

Code: Select all

#Iteration=100000
OpenConsole()

PrintN("Creating testfile")
T1=ElapsedMilliseconds()
CreateFile(1,#PB_Compiler_Home+"Compilers\testme.pb")
WriteStringN(1,"Messagerequester(" + Chr(34)+"info"+Chr(34)+","+Chr(34)+"Dummy of the day"+Chr(34)+",0):End")
M=#Iteration/3
For I=1 To M
 WriteStringN(1,"For t=0 to 1000")
 WriteStringN(1," P=42")
 WriteStringN(1,"Next")
Next
CloseFile(1)
T2=ElapsedMilliseconds()
PrintN(" created file with "+Str(#Iteration)+" lines in "+StrF((t2-t1)/1000,3)+" secs")
PrintN(" now compiling testfile.....")
T1=ElapsedMilliseconds()
r=RunProgram(#PB_Compiler_Home+"Compilers\pbcompiler",Chr(34)+#PB_Compiler_Home+"Compilers\testme.pb"+Chr(34)+" /exe testme.exe","",#PB_Program_Wait)
T2=ElapsedMilliseconds()
PrintN("time To Compile "+Str(#Iteration)+" lines is "+StrF((t2-t1)/1000,3)+" secs")
t.s=Input()
DeleteFile(#PB_Compiler_Home+"Compilers\testme.pb")
DeleteFile(#PB_Compiler_Home+"Compilers\testme.exe")
CloseConsole()
By the way i got more than 5 secs in a AMD64 3000+, but with NOD32 antivirus...
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
PureBaser
User
User
Posts: 33
Joined: Mon Apr 10, 2006 8:47 pm
Location: Berlin, Germany
Contact:

Post by PureBaser »

6,94s on my PIII 900. The 450 will follow....
PB 4 | WinXP_SP2
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Psychopanta, I've got a nearly identical system to yours and the example compiles in 1.64 seconds.
BERESHEIT
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

netmaestro wrote:Psychopanta, I've got a nearly identical system to yours and the example compiles in 1.64 seconds.
Do you have NOD32 and ZoneAlarm pro running?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

No, but I have VistaClock running sticky. That speeds up processing time for all applications by 300% :lol:
BERESHEIT
Fred
Administrator
Administrator
Posts: 18253
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

BTW, these numbers are very old and will be removed from the page as it makes no sens anymore.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

what numbers?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

Psychophanta wrote:what numbers?
these ones :
"PB is able to compile more than 300.000 Codes per minute on a P200"
:wink:
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Post Reply