Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/aspnet/MessagePack-CSharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/PerfBenchmarkDotNet/SerializeBenchmark.cs')
-rw-r--r--sandbox/PerfBenchmarkDotNet/SerializeBenchmark.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/sandbox/PerfBenchmarkDotNet/SerializeBenchmark.cs b/sandbox/PerfBenchmarkDotNet/SerializeBenchmark.cs
index 0ed114b0..fc9a3a06 100644
--- a/sandbox/PerfBenchmarkDotNet/SerializeBenchmark.cs
+++ b/sandbox/PerfBenchmarkDotNet/SerializeBenchmark.cs
@@ -1,4 +1,4 @@
-// Copyright (c) All contributors. All rights reserved.
+// Copyright (c) All contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
extern alias newmsgpack;
@@ -36,6 +36,12 @@ namespace PerfBenchmarkDotNet
}
[Benchmark]
+ public byte[] IntKey_NonGeneric()
+ {
+ return newmsgpack.MessagePack.MessagePackSerializer.Serialize(typeof(IntKeySerializerTarget), intData);
+ }
+
+ [Benchmark]
public byte[] StringKey()
{
return newmsgpack.MessagePack.MessagePackSerializer.Serialize<StringKeySerializerTarget>(stringData);