ZMTPFrame.create("second identity frame")),
asList(ZMTPFrame.create("datadatadatadatadatadatadatadatadatadata"),
ZMTPFrame.create("datadatadatadatadatadatadatadatadatadata"),
ZMTPFrame.create("datadatadatadatadatadatadatadatadatadata"),
ZMTPFrame.create("datadatadatadatadatadatadatadatadatadata")));
final ZMTPMessageParser parser = new ZMTPMessageParser(true, 1024 * 1024, 1);
long sum = 0;
for (long i = 0; i < 1000000; i++) {
for (long j = 0; j < 1000; j++) {
final ChannelBuffer buffer = ChannelBuffers.buffer(ZMTPUtils.messageSize(message, true, 1));
ZMTPUtils.writeMessage(message, buffer, true, 1);
message = parser.parse(buffer).getMessage();
sum += buffer.readableBytes();
}
meter.inc(1000, 0);
}