aboutsummaryrefslogtreecommitdiff
path: root/src/ProtoBench
diff options
context:
space:
mode:
Diffstat (limited to 'src/ProtoBench')
-rw-r--r--src/ProtoBench/Program.cs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ProtoBench/Program.cs b/src/ProtoBench/Program.cs
index 91604f3c..e23a4c5c 100644
--- a/src/ProtoBench/Program.cs
+++ b/src/ProtoBench/Program.cs
@@ -48,7 +48,6 @@ namespace Google.ProtocolBuffers.ProtoBench
MemoryStream inputStream = new MemoryStream(inputData);
ByteString inputString = ByteString.CopyFrom(inputData);
IMessage sampleMessage = defaultMessage.WeakCreateBuilderForType().WeakMergeFrom(inputString).WeakBuild();
- sampleMessage.ToByteString();
Benchmark("Serialize to byte string", inputData.Length, () => sampleMessage.ToByteString());
Benchmark("Serialize to byte array", inputData.Length, () => sampleMessage.ToByteArray());
Benchmark("Serialize to memory stream", inputData.Length, () => sampleMessage.WriteTo(new MemoryStream()));