PB 6.40 beta 1 - Speed

Everything else that doesn't fall into one of the other PB categories.
threedslider
Enthusiast
Enthusiast
Posts: 547
Joined: Sat Feb 12, 2022 7:15 pm

PB 6.40 beta 1 - Speed

Post by threedslider »

This version PB 6.40 beta 1 is best for speed again !! Really ? Test by yourself with my Raytracing in one week (viewtopic.php?p=623357#p623357) and then compare from PB 6.30 and PB 6.40 b1, what give you the result ? :D

Mine is PB 6.30 : 4969 and PB 6.40 b1 : 4225 ms
Difference : 775 ms

Have a nice day !
User_Russian
Addict
Addict
Posts: 1614
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PB 6.40 beta 1 - Speed

Post by User_Russian »

The result is the same.
Perhaps you forgot to disable the debugger and select the C backend compiler in PB 6.30.

If you want to compare speed.
PB

Code: Select all

DisableDebugger
t = ElapsedMilliseconds()
s.s
For i=0 To 200000
  s + i
Next
MessageRequester("", Str(ElapsedMilliseconds()-t))
AutoIt

Code: Select all

$t = TimerInit()
$s=""
For $i=0 To 200000
  $s &= $i
Next
MsgBox(0, "", TimerDiff($t))
PB 6.40 - 8300 millisecond.
AutoIt - 60 millisecond.
threedslider
Enthusiast
Enthusiast
Posts: 547
Joined: Sat Feb 12, 2022 7:15 pm

Re: PB 6.40 beta 1 - Speed

Post by threedslider »

My result is without debugger... :?

Otherwise your comparison to PB and Autoit are impressive, I am sure Fred can improve this speed as well, he has a lot of options :shock:
User avatar
jacdelad
Addict
Addict
Posts: 2062
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PB 6.40 beta 1 - Speed

Post by jacdelad »

You are doing 200000 type conversions which are not directly related to the string library.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/2*DX517, 164TB+82TB+28TB+2TB SSD
User_Russian
Addict
Addict
Posts: 1614
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PB 6.40 beta 1 - Speed

Post by User_Russian »

jacdelad wrote: Fri Jan 23, 2026 9:51 pmnot directly related to the string library.
But the string library converts a number to a string.
OK, this code runs in one second.

Code: Select all

DisableDebugger
t = ElapsedMilliseconds()
s.s
For i=0 To 200000
  s + " "
Next
MessageRequester("", Str(ElapsedMilliseconds()-t))
Post Reply