// DO NOT generate random logs here, this is accumulatively time consuming
// and will affact the result of performance test,
// instead pre-gen a log when the producer is initialized
// byte[] logEvent = RandomLogGenerator.genRandomLogEventBytes(LOG_MESSAGE_SIZE_LIMIT);
long begin = System.currentTimeMillis();
QueueRequest request = new QueueRequest();
request.setData(logEvent);
QueueResponse response = client.enqueue(TestClient.TOPIC, request);
long end = System.currentTimeMillis();
if (response.getResultCode() == ResultCode.SUCCESS) {
testResult.successCount++;
} else {