perftest: using Pump.copy() instead of directly writing buffer
Added ObjectTransformMixin

It includes common object transformation and validation methods.