Comments from the Arduino 15 libraries...
Any estimates on the Serial.print vs Serial.write runtime overhead? Of academic interest and pure curiosity, at this point...
Relative to the others, Serial.write
has zero overhead. All the Serial.print
methods eventually call Serial.write
.print( /*unsigned*/ int)
is more expensive than print( /*unsigned*/ long)
for the simple reason that the int-print methods cast the argument to (unsigned
and call print( /*unsigned*/ long)
The unsigned-print methods are slightly faster than the signed-print methods.
Without a doubt, printing a floating-point number is the most expensive method.
The one glaring omission is the lack of an optimized print for integers to hexidecimal.