mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2026-09-03 20:53:07 -05:00
Merge pull request #328 from XN137/driver-jms-avoid-decoding-msgbody-twice
avoid decoding msgBody twice in JmsMsgSendOp
This commit is contained in:
@@ -108,11 +108,10 @@ public class JmsMsgSendOp extends JmsTimeTrackOp {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
int messageSize;
|
||||
try {
|
||||
byte[] msgBytes = msgBody.getBytes(StandardCharsets.UTF_8);
|
||||
messageSize = msgBytes.length;
|
||||
jmsProducer.send(jmsDestination, msgBody.getBytes(StandardCharsets.UTF_8));
|
||||
int messageSize = msgBytes.length;
|
||||
jmsProducer.send(jmsDestination, msgBytes);
|
||||
|
||||
messagesizeHistogram.update(messageSize);
|
||||
bytesCounter.inc(messageSize);
|
||||
|
||||
Reference in New Issue
Block a user