LightDeserializationContext dc = new LightDeserializationContext();
long start = System.currentTimeMillis();
for (int i = 0; i < loops; i++) {
channel.read(buffer);
buffer.flip();
dc.deserialize(buffer);
buffer.compact();
}
long total = System.currentTimeMillis()- start;
channel.close();
return total;