@Override
        public <T extends Message<T>> byte[] serialize(T message)
        {
            return toByteArrayComputedProtobuf(message, message.cachedSchema());
        }
Benchmark to compare the serialization speed of 3 types. CodedOutput, BufferedOutput and DeferredOutput.

@author David Yu
@created Nov 13, 2009
protostuff-core/src/test/java/io/protostuff/CompareOutputsTest.java