Unify duplicated codes of WriteThroughputResult & ReadLatencyResult.