PaulStoffregen
Well-known member
I'm planning to start working on speed improvements to Teensy USB Serial receive functions, specifically Serial.readBytes() and Serial.readBytesUntil(). These functions have never been well optimized, partly because Arduino's API doesn't include an optimized read() function. This thread on Adafruit's forum is just one example where better speed is needed.
As a first step, I've written a simple benchmark. The code is attached. I'd like to encourage anyone interested in the receive speed to run this benckmark and post their results, and of course subscribe to notifications on this thread.
Running on my linux desktop, I measured 408 kbytes/sec to Teensy 3.0 and 139 kbyes/sec to Teensy 2.0. Both have 0 volts (no free CPU time) on pin 3.
Much better speed is possible, and I intend to make it happen....
As a first step, I've written a simple benchmark. The code is attached. I'd like to encourage anyone interested in the receive speed to run this benckmark and post their results, and of course subscribe to notifications on this thread.
Running on my linux desktop, I measured 408 kbytes/sec to Teensy 3.0 and 139 kbyes/sec to Teensy 2.0. Both have 0 volts (no free CPU time) on pin 3.
Much better speed is possible, and I intend to make it happen....