Micro-benchmarks are usually not a good way to evaluate systems. That said, using a bytemap array can be very fast while also providing readable code. Let's say you want to test that string contains ...
No choppiness between bytestream segments Handles non-real-time streams -- faster and slower than real-time Handles intermittent streams (i.e., streams that may not yield bytes for a while) ...