Benchmark against using slices.

Seems to be slightly faster (74ns vs. 79ns per iteration) to
use slices here instead of buf[pos] operations. I think this is
because of bounds checking.