aboutsummaryrefslogtreecommitdiff
path: root/src/ProtoBench/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ProtoBench/Program.cs')
-rw-r--r--src/ProtoBench/Program.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ProtoBench/Program.cs b/src/ProtoBench/Program.cs
index 23af195c..0dbf1236 100644
--- a/src/ProtoBench/Program.cs
+++ b/src/ProtoBench/Program.cs
@@ -158,7 +158,7 @@ namespace Google.ProtocolBuffers.ProtoBench
} );
RunBenchmark("Serialize to json", jsonBytes.Length, () =>
{
- JsonFormatWriter.CreateInstance(new MemoryStream()).WriteMessage(sampleMessage);
+ JsonFormatWriter.CreateInstance().WriteMessage(sampleMessage);
});
RunBenchmark("Serialize to json via xml", jsonBytes.Length,
() =>