I just did some benchmark speed tests of Basic4PPC compared to NSBasic. I was a bit disappointed with the results. The test is one used by NSB to compare PDAs and is very simple (simplistic really) but good enough for a rough comparison. The code is just a one line loop to see how many iterations can be done in 10 sec:
Sub App_Start
Form1.Show
WaitCursor(True)
Dim limit, counter
limit = TimeAdd(Now, 0, 0, 10)
counter = 0
Do Until Now > limit
counter = counter + 1
Loop
WaitCursor(False)
Msgbox(counter/10 & " iterations per second")
End Sub
I ran this on my PDA in both IDE and compiled forms and got values of about 500 and 1100. The same code in NSBasic on the same PDA was 11000 - 10 times faster than B4PPC!
Is this purely down to .NET?
(By the way, I have no intentions of going back to NSB, even with this difference. The development speed in B4PPC is 10 times faster than NSB!)
Sub App_Start
Form1.Show
WaitCursor(True)
Dim limit, counter
limit = TimeAdd(Now, 0, 0, 10)
counter = 0
Do Until Now > limit
counter = counter + 1
Loop
WaitCursor(False)
Msgbox(counter/10 & " iterations per second")
End Sub
I ran this on my PDA in both IDE and compiled forms and got values of about 500 and 1100. The same code in NSBasic on the same PDA was 11000 - 10 times faster than B4PPC!
Is this purely down to .NET?
(By the way, I have no intentions of going back to NSB, even with this difference. The development speed in B4PPC is 10 times faster than NSB!)