Microcontroller I/O & ADC Benchmarks

robtillaart:
Made the topic sticky because imho it is very informative.

athough some numbers make me think there is a loss of precision in the math somewhere.

Yes there does appear to be some loss of precision, I should maybe have printed to 4 decimal places instead of the default 2 but I have got the results I need for analogue so will probably not alter the code and re-run the tests.
I have added a Nucleo to the results and I had to up the precision there to see anything.

EDIT: I have attached a slightly modified version that displays result to 4 decimal places instead of 2.

Benchmark_IO.ino (2.21 KB)