Go to advanced search

by RoyLongbottom
Mon Apr 12, 2021 6:45 pm
Forum: General
Topic: How fast are the fast floating point functions
Replies: 28
Views: 2194

Re: How fast are the fast floating point functions

I have fixed the misprinting problem in my Pico Whetstone benchmarks. by inserting a fflush(stdout) function in an appropriate place. The CMakesLists.txt includes the following for SP and similar for DP: pico_set_printf_implementation(whets compiler) target_link_libraries(whets pico_stdlib pico_prin...
by RoyLongbottom
Sun Apr 11, 2021 7:48 pm
Forum: General
Topic: How fast are the fast floating point functions
Replies: 28
Views: 2194

Re: How fast are the fast floating point functions

it is literally pico_set_printf_implementation(whetsdp compiler) I had tried that and again just now. It still produces error - fatal error: pico/printf.h: No such file or directory #include "pico/printf.h" Ah; that seems to have regressed at some point; for now, do: target_link_libraries...
by RoyLongbottom
Sat Apr 10, 2021 5:27 pm
Forum: General
Topic: How fast are the fast floating point functions
Replies: 28
Views: 2194

Re: How fast are the fast floating point functions

PICO Results Back on track, I have produced Pico Double Precision Whetstone Benchmark. Below are results, followed by a repeat of those at Single Precision. Note slower DP ffloating point except for sin,cos and exp,sqrt tests. Is it just the printing routines which are single precision on the Pico?...
by RoyLongbottom
Sat Apr 10, 2021 5:11 pm
Forum: General
Topic: How fast are the fast floating point functions
Replies: 28
Views: 2194

Re: How fast are the fast floating point functions

it is literally pico_set_printf_implementation(whetsdp compiler) I had tried that and again just now. It still produces error - fatal error: pico/printf.h: No such file or directory #include "pico/printf.h" Following are details of CMakeLists.txt and program includes. What am I missing? c...
by RoyLongbottom
Sat Apr 10, 2021 3:10 pm
Forum: General
Topic: How fast are the fast floating point functions
Replies: 28
Views: 2194

Re: How fast are the fast floating point functions

PICO Results Back on track, I have produced Pico Double Precision Whetstone Benchmark. Below are results, followed by a repeat of those at Single Precision. Note slower DP ffloating point except for sin,cos and exp,sqrt tests. Double Precision C/C++ Whetstone Benchmark Loop content Result MFLOPS MO...
by RoyLongbottom
Sat Apr 10, 2021 12:18 pm
Forum: General
Topic: How fast are the fast floating point functions
Replies: 28
Views: 2194

Re: How fast are the fast floating point functions

I think NEON on the Cortex-A72 has short vectors that double the performance of single precision versus double precision. The compiler switches look right. I wonder what happened. It seems that I had to include compile parameter -funsafe-math-optimizations again to force vectorisation but that did ...
by RoyLongbottom
Fri Apr 09, 2021 11:47 am
Forum: General
Topic: How fast are the fast floating point functions
Replies: 28
Views: 2194

Re: How fast are the fast floating point functions

Do the speeds of the Pi 4B double when using single precision? That would make for a more even comparison. I have just compiled single and double precision versions of the Whetstone benchmark on my Pi 4B. All it needs is a #define DP directive. Both were compiled using gcc8 with the following param...
by RoyLongbottom
Thu Apr 08, 2021 1:39 pm
Forum: General
Topic: How fast are the fast floating point functions
Replies: 28
Views: 2194

Re: How fast are the fast floating point functions

cool stuff - how do we interpret those figures? e.g. N1 floating point -1.12475013700000000 1.493 0.103 is that 1,493,000 ops in 0.103 secs? 1.493 is MFLOPS or Million Floating Point Operations Per Second. The time is provided to show that the functions are actually executed and the total is around...
by RoyLongbottom
Thu Apr 08, 2021 9:31 am
Forum: General
Topic: How fast are the fast floating point functions
Replies: 28
Views: 2194

Re: How fast are the fast floating point functions

Result from my benchmarking report in https://www.raspberrypi.org/forums/viewtopic.php?f=144&t=299535#p1823214 Pico Single Precision C/C++ Whetstone Benchmark Loop content Result MFLOPS MOPS Seconds N1 floating point -1.12475013700000000 1.493 0.103 N2 floating point -1.12274742100000000 1.495 0...
by RoyLongbottom
Mon Mar 08, 2021 4:08 pm
Forum: General
Topic: Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks
Replies: 10
Views: 2489

Re: Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks

My benchmarking report for Pico is now available at ResearchGate in a PDF file. This includes extra items that might be of interest here. https://www.researchgate.net/publication/349862441_Raspberry_Pi_Pico_Pi_4_and_Pi_400_Python_and_C_Basic_Beginners_Bit_Banging_Benchmarks_R Maximum Bit Banging Spe...
by RoyLongbottom
Sun Feb 28, 2021 6:22 pm
Forum: General
Topic: Pico Activation Using Power Over Ethernet
Replies: 0
Views: 599

Pico Activation Using Power Over Ethernet

There might be other reports on this, but I haven’t seen them. I have a Gigabit PoE power injector; https://www.amazon.co.uk/dp/B001PS9E5I/ref=pe_3187911_189395841_TE_dp_1 and PoE Splitter https://www.amazon.co.uk/dp/B074Y6M67F/ref=pe_3187911_189395841_TE_dp_1 that separates Ethernet and power conne...
by RoyLongbottom
Fri Feb 26, 2021 11:00 am
Forum: SDK
Topic: How do I Sleep for Microseconds/Nanoseconds?
Replies: 11
Views: 1827

Re: How do I Sleep for Microseconds/Nanoseconds?

You might be interested in the results in my benchmarking posts, testing various sleeps. https://www.raspberrypi.org/forums/viewtopic.php?f=144&t=299535#p1810345 The test involves increasing loop counts (with two sleeps) and decreasing microseconds sleeping time, where the minimum time for each ...
by RoyLongbottom
Sun Feb 21, 2021 5:51 pm
Forum: General
Topic: Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks
Replies: 10
Views: 2489

Re: Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks

Dhrystone Benchmark - This is the last benchmark that I intended to run on the Pico, particularly because it includes no floating point calculations. Results on the Pico and Pi 4B were: Pico ########################################## Dhrystone Benchmark, Version 2.1 (Language: C or C++) Register op...
by RoyLongbottom
Fri Feb 19, 2021 5:10 pm
Forum: General
Topic: Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks
Replies: 10
Views: 2489

Re: Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks

Standard C Benchmarks I have run some of my normal C benchmarks on the Pico. Changes needed were references to CPU configuration, file output and timing. Initially, performance appeared to be unacceptable, not realising, at the time, that the Pico has no floating point hardware and it was 16 bit ar...
by RoyLongbottom
Thu Feb 18, 2021 9:42 am
Forum: General
Topic: How to measure Pico current?
Replies: 13
Views: 1470

Re: How to measure Pico current?

As I reported in my benchmark topic using a new multimeter USB Current (via split cable) - The following measurements were mainly on running my benchmark that drives 11 LEDs and 2 resistive outputs, with no sleep functions. 50.0 mA - Continuous output 28.2 mA - Program inactive Current to ground - o...
by RoyLongbottom
Wed Feb 10, 2021 12:12 am
Forum: General
Topic: Performance C vs micropython
Replies: 21
Views: 4161

Re: Performance C vs micropython

nick.mccloud wrote:
Tue Feb 09, 2021 8:45 pm
DarkElvenAngel wrote:
Tue Feb 09, 2021 8:38 pm
Once the program is running is python still slower that C? Are there any metrics on this?

I did search for this but didn't find a thread about it.
Patience is a virtue, it's only 10 days old.
See my benchmark report

viewtopic.php?f=144&t=299535
by RoyLongbottom
Thu Feb 04, 2021 7:15 pm
Forum: General
Topic: How to count pulses with PIO?
Replies: 14
Views: 2685

Re: How to count pulses with PIO?

The following is my C unrefined example frequency checking counter that I use on a Pi 4 or Pi 400 to verify output from Piico or another Pi GPIO. It measures transitions from ON to OFF and OFF to ON from a LED flashing program, in 10 second samples - see my benchmarking topic. /* gcc -o incount inco...
by RoyLongbottom
Thu Feb 04, 2021 2:44 pm
Forum: General
Topic: Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks
Replies: 10
Views: 2489

Re: Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks

Power Consumption I split a USB cable in order to measure Pico input current but my old multimeter (or its leads) appeared to restrict the current to a level that the Pico would not operate. A new meter appears to be suitable for this activity. USB Current - The following measurements were mainly o...
by RoyLongbottom
Mon Feb 01, 2021 4:05 pm
Forum: General
Topic: Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks
Replies: 10
Views: 2489

Re: Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks

Updated C Sleep Time During the tests, reported above, the sleep_us(microsecs) function was found to be not very accurate. Best case to show this (using my programs) is a sleep only test. This measures the elapsed time using increasing loop counts, with decreasing sleep times, where the theoretical...
by RoyLongbottom
Fri Jan 22, 2021 4:49 pm
Forum: General
Topic: Have I missed something...
Replies: 113
Views: 7876

Re: Have I missed something...

Do you really have to replug the USB every time to reload your code ? If so I can see a lot of broken usb sockets in the near future... PeterO I have a 5 inch male to female USB extension cable stapled to my desktop. My main worry at the time was reinserting the main cable sometimes dislodged the m...
by RoyLongbottom
Thu Jan 21, 2021 8:27 am
Forum: General
Topic: Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks
Replies: 10
Views: 2489

Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks

Raspberry Pico and Pi 4 Python and C Basic Beginners Bit Banging Benchmarks As a member of the Alpha Testing Team I have been writing and running some simple extended LED flashing type benchmarks, initially on a Pi 4 and Pi 400 then moving on to the Pico. Both Python and Bit Banging (of this form) ...
by RoyLongbottom
Fri Jan 15, 2021 10:55 am
Forum: Raspberry Pi 400
Topic: Booting Pi 400 from a tiny USB stick
Replies: 12
Views: 1751

Re: Booting Pi 400 from a tiny USB stick

New Fit On The Block I have just bought another tiny USB 3.1 Flash Drive, a 64 GB Samsung FIT Plus (SamFIT) that claims speeds of up to 300 MBytes/second. That Samsung drive sounds promising - thanks for posting all those measurements. Would it be possible to run the "Raspberry Pi Diagnostics&...
by RoyLongbottom
Thu Jan 14, 2021 3:48 pm
Forum: Raspberry Pi 400
Topic: Booting Pi 400 from a tiny USB stick
Replies: 12
Views: 1751

Re: Booting Pi 400 from a tiny USB stick

New Fit On The Block I have just bought another tiny USB 3.1 Flash Drive, a 64 GB Samsung FIT Plus (SamFIT) that claims speeds of up to 300 MBytes/second. https://www.amazon.co.uk/Samsung-MUF-64AB-GBFit-Flash-Drive/dp/B07FD8H2KD I already have a 16 GB SanDisk USB 3.0 Ultra Fit drive (SanFit), with ...
by RoyLongbottom
Sun Dec 20, 2020 6:35 pm
Forum: Raspberry Pi 400
Topic: Pi400 slow usb3 ports?
Replies: 7
Views: 568

Re: Pi400 slow usb3 ports?

HDParm Disk Read 319.53 MB/s HDParm Cached Disk Read 314.43 MB/s It looks as though the benchmark is not using Direct I/O but reading data cached in RAM, (if Direct I/O is supported by the OS). Next to try is a benchmark that writes then reads files greater than RAM size. Finally, probably most rel...
by RoyLongbottom
Sat Nov 07, 2020 6:12 pm
Forum: General programming discussion
Topic: Raspberry Pi 400 PC 32 Bit and 64 Bit Benchmarks and Stress Tests
Replies: 6
Views: 2544

Re: Raspberry Pi 400 PC 32 Bit and 64 Bit Benchmarks and Stress Tests

Very impressive report. Can any of these benchmarks be compiled for aarch64ilp32 already on some linux distrubution for newer Pis? This might show interesting results. The same code was compiled for 32 bits and 64 bits with the only difference defines to indicate which and other things, in some cas...

Go to advanced search