From 281d660b4beb34aa5e0671283dafc0d49a7a62df Mon Sep 17 00:00:00 2001 From: Bartosz Sypytkowski Date: Thu, 15 Dec 2016 13:07:42 +0100 Subject: [PATCH] adjusted nbench perf test values --- .../DeserializePrimitivesBenchmark.cs | 14 +++++++------- .../Serialization/SerializeCollectionsBenchmark.cs | 8 ++++---- .../Serialization/SerializePrimitivesBenchmark.cs | 2 +- Hyperion.sln | 1 + 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Hyperion.Tests.Performance/Deserialization/DeserializePrimitivesBenchmark.cs b/Hyperion.Tests.Performance/Deserialization/DeserializePrimitivesBenchmark.cs index a7e83ddf..4275781a 100644 --- a/Hyperion.Tests.Performance/Deserialization/DeserializePrimitivesBenchmark.cs +++ b/Hyperion.Tests.Performance/Deserialization/DeserializePrimitivesBenchmark.cs @@ -84,7 +84,7 @@ public override void Setup(BenchmarkContext context) RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 13000000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 12000000)] public void Deserialize_Int32() { Stream.Position = 0; // don't move it up to Setup, I don't know why it needed here to work @@ -110,7 +110,7 @@ public override void Setup(BenchmarkContext context) RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 11000000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 10000000)] public void Deserialize_Int64() { Stream.Position = 0; // don't move it up to Setup, I don't know why it needed here to work @@ -136,7 +136,7 @@ public override void Setup(BenchmarkContext context) RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 17000000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 15000000)] public void Deserialize_SByte() { Stream.Position = 0; // don't move it up to Setup, I don't know why it needed here to work @@ -162,7 +162,7 @@ public override void Setup(BenchmarkContext context) RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 12000000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 11000000)] public void Deserialize_UInt16() { Stream.Position = 0; // don't move it up to Setup, I don't know why it needed here to work @@ -214,7 +214,7 @@ public override void Setup(BenchmarkContext context) RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 12000000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 9000000)] public void Deserialize_UInt64() { Stream.Position = 0; // don't move it up to Setup, I don't know why it needed here to work @@ -292,7 +292,7 @@ public override void Setup(BenchmarkContext context) RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 6500000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 6200000)] public void Deserialize_Decimal() { Stream.Position = 0; // don't move it up to Setup, I don't know why it needed here to work @@ -423,7 +423,7 @@ public override void Setup(BenchmarkContext context) RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 12000000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 10000000)] public void Deserialize_DateTime() { Stream.Position = 0; // don't move it up to Setup, I don't know why it needed here to work diff --git a/Hyperion.Tests.Performance/Serialization/SerializeCollectionsBenchmark.cs b/Hyperion.Tests.Performance/Serialization/SerializeCollectionsBenchmark.cs index beb3ab3c..053951ba 100644 --- a/Hyperion.Tests.Performance/Serialization/SerializeCollectionsBenchmark.cs +++ b/Hyperion.Tests.Performance/Serialization/SerializeCollectionsBenchmark.cs @@ -29,7 +29,7 @@ public class SerializeCollectionsBenchmark : PerfTestBase RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 5000000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 4800000)] public void Serialize_ByteArray() { SerializeAndCount(new byte[] { 123, 134, 11, 122, 1 }); @@ -42,7 +42,7 @@ public void Serialize_ByteArray() RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 1200000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 300000)] public void Serialize_StringArray() { SerializeAndCount(new string[] { "abc", "cbd0", "sdsd4", "4dfg", "sfsdf44g" }); @@ -55,7 +55,7 @@ public void Serialize_StringArray() RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 500000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 360000)] public void Serialize_Dictionary() { var dictionary = new Dictionary @@ -74,7 +74,7 @@ public void Serialize_Dictionary() RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 650000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 550000)] public void Serialize_List() { SerializeAndCount(new List { "asdad", "asdabs3", "sfsdf44g", "asdf4r", "sfsdf44g" }); diff --git a/Hyperion.Tests.Performance/Serialization/SerializePrimitivesBenchmark.cs b/Hyperion.Tests.Performance/Serialization/SerializePrimitivesBenchmark.cs index 8b1ab03b..875d77ce 100644 --- a/Hyperion.Tests.Performance/Serialization/SerializePrimitivesBenchmark.cs +++ b/Hyperion.Tests.Performance/Serialization/SerializePrimitivesBenchmark.cs @@ -329,7 +329,7 @@ public void Serialize_Tuple7() RunMode = RunMode.Throughput, RunTimeMilliseconds = StandardRunTime, TestMode = TestMode.Test)] - [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 700000)] + [CounterThroughputAssertion(TestCounterName, MustBe.GreaterThan, 600000)] public void Serialize_Tuple8() { SerializeAndCount(Tuple.Create(123, true, "x", 123.3f, "asdasdac", false, (byte)0xf, 1234)); diff --git a/Hyperion.sln b/Hyperion.sln index e11d6afe..cfa4447f 100644 --- a/Hyperion.sln +++ b/Hyperion.sln @@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{2F3D4EC4 build.cmd = build.cmd build.fsx = build.fsx build.sh = build.sh + README.md = README.md RELEASE_NOTES.md = RELEASE_NOTES.md EndProjectSection EndProject