diff options
author | csharptest <roger@csharptest.net> | 2011-06-11 10:41:57 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-06-11 10:41:57 -0500 |
commit | f292523df9d3a754e496f90bc26c0995a1d332a4 (patch) | |
tree | fba719d05650571b8f7f62bbe6bbcb8ff0032244 /src/ProtoBench | |
parent | 7fc785c1d463c4424cf3e3c8d7fbe796e0197b70 (diff) | |
download | protobuf-f292523df9d3a754e496f90bc26c0995a1d332a4.tar.gz protobuf-f292523df9d3a754e496f90bc26c0995a1d332a4.tar.bz2 protobuf-f292523df9d3a754e496f90bc26c0995a1d332a4.zip |
Added convenience methods for to/from xml and json
Diffstat (limited to 'src/ProtoBench')
-rw-r--r-- | src/ProtoBench/Program.cs | 2 |
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,
() =>
|