Testing speed of board, sensor, library output

If I want to test the speed of a board, sensor or library, can I count how many serial.print 's I receive back in serial monitor regarding a sensor value in a few seconds?

If not, how can I be sure that a certain board, sensor, library combination is faster than others?

You can time any action using millis() or micros().

Count the number of sensor scans per second or some other meaningful time and output only that rate. Then you can be sure that not the amount of Serial data is blocking your code.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.