preallocate output buffers for speed test