![]() |
Forum Index : Microcontroller and PC projects : Another BM
Author | Message | ||||
PhenixRising Guru ![]() Joined: 07/11/2023 Location: United KingdomPosts: 1362 |
That includes the AgonLight2 They spelled it Agon Lite 2 but PiHut is as-spelled in the link. |
||||
Martin H.![]() Guru ![]() Joined: 04/06/2022 Location: GermanyPosts: 1222 |
Pico2 Pico tt=Timer 20 For N=1 To 100 25 A=N 30 For I=1 To 10 40 A=Sqr(A) 45 R=R+Rnd(1) 50 Next I 60 For I=1 To 10 70 A=A^2 75 R=R+Rnd(1) 80 Next I 90 S=S+A 95 Next N 100 Print Abs(1010-S/5) 110 Print Abs(1000-R) Print Timer-tt Edited 2024-09-10 03:12 by Martin H. 'no comment |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5066 |
Ok, Pico is 20 times faster than Aegon light. Volhout PicomiteVGA PETSCII ROBOTS |
||||
PeteCotton![]() Guru ![]() Joined: 13/08/2020 Location: CanadaPosts: 543 |
Nice article - thanks. The Colour Maximite 2 got 21 milliseconds - 62 times the speed of the Agon Lite (and almost 6,000 times as fast as the Commodore 64 BASIC!). I should note that I used the original David Ahl listing (below), which condenses the logic onto fewer lines. We know that makes a slight improvement in speed (as opposed to it all being separate lines). ![]() |
||||
PeteCotton![]() Guru ![]() Joined: 13/08/2020 Location: CanadaPosts: 543 |
For the sake of curiosity, I split the logic into separate lines, and it did add 4 milliseconds to the time. Not much compared to other computers, but a significant portion of it's own time (20% longer). It does show how the slightest change can affect each benchmark to favour/detriment from one machine to another. |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5066 |
Using the power of MMBasic.... RP2040 (Geek) board at 378MHz is 45ms (132ms at 133MHz). ![]() Volhout PicomiteVGA PETSCII ROBOTS |
||||
PhenixRising Guru ![]() Joined: 07/11/2023 Location: United KingdomPosts: 1362 |
![]() ![]() Might save a couple of clocks with: Timer=0 . . . . . Print Timer |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5066 |
Tried that, takes longer. Volhout . PicomiteVGA PETSCII ROBOTS |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |