static <T> byte[] toByteArrayComputedProtostuff(T message, Schema<T> schema)
    {
        return CodedOutput.toByteArray(message, schema, true);
    }
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