Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:10 24 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Another BM

Author Message
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 04:29pm 09 Sep 2024
Copy link to clipboard 
Print this post

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: Germany
Posts: 1113
Posted: 05:02pm 09 Sep 2024
Copy link to clipboard 
Print this post

Pico2
  Quote  

6.821210263e-13
17.5892694
Time (MM:SS.ms) 00:00.56.271

> option list
PicoMiteHDMI MMBasic Version 6.00.00b6
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD US
OPTION CPUSPEED (KHz) 315000
OPTION DISPLAY 20, 40
OPTION SDCARD GP5, GP2, GP3, GP4
OPTION AUDIO GP6,GP7', ON PWM CHANNEL 3
OPTION MODBUFF ENABLE  192

Pico
  Quote   6.821210263e-13
9.700772474
Time (MM:SS.ms) 00:00.60.436
>
> option list
PicoMiteVGA MMBasic Version 5.09.00RC5
OPTION COLOURCODE ON
OPTION KEYBOARD GR, 0, 0, 0, 0
OPTION CPUSPEED (KHz) 378000
OPTION SDCARD GP10, GP12, GP11, GP13
OPTION AUDIO GP6,GP7', ON PWM CHANNEL 3
OPTION MODBUFF ENABLE  180


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: Netherlands
Posts: 4222
Posted: 08:32pm 09 Sep 2024
Copy link to clipboard 
Print this post

Ok,

Pico is 20 times faster than Aegon light.

Volhout
PicomiteVGA PETSCII ROBOTS
 
PeteCotton

Guru

Joined: 13/08/2020
Location: Canada
Posts: 368
Posted: 10:15pm 09 Sep 2024
Copy link to clipboard 
Print this post

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: Canada
Posts: 368
Posted: 10:40pm 09 Sep 2024
Copy link to clipboard 
Print this post

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: Netherlands
Posts: 4222
Posted: 06:02am 10 Sep 2024
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 857
Posted: 06:47am 10 Sep 2024
Copy link to clipboard 
Print this post

  Volhout said  Using the power of MMBasic....

RP2040 (Geek) board at 378MHz is 45ms (132ms at 133MHz).





Volhout


 

Might save a couple of clocks with:


Timer=0
.
.
.
.
.
Print Timer
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4222
Posted: 09:12am 10 Sep 2024
Copy link to clipboard 
Print this post

Tried that, takes longer.

Volhout
.
PicomiteVGA PETSCII ROBOTS
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024