Formatting fixes. Logging average time taken for one iteration.
Separate input and output. Avoid memcpy.