Skip to content

Commit

Permalink
adjusted nbench perf test values
Browse files Browse the repository at this point in the history
  • Loading branch information
Horusiath committed Dec 15, 2016
1 parent f28ebe5 commit 281d660
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -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" });
Expand All @@ -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<string, string>
Expand All @@ -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<string> { "asdad", "asdabs3", "sfsdf44g", "asdf4r", "sfsdf44g" });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions Hyperion.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 281d660

Please sign in to comment.