Skip to content

Commit 7618fed

Browse files
author
ladeak
committed
Removing redundant benchmark
1 parent f76cd9e commit 7618fed

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

tests/CHttp.Benchmarks/Program.cs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -72,34 +72,6 @@ public int DecodeIntegerVariable()
7272
}
7373
}
7474

75-
[SimpleJob]
76-
public class IntegerDecoderBenchmarks
77-
{
78-
public static byte[] _input = [0b01111111, 0b11111111, 0b11111111, 0b11111111, 0b11111111, 0b00000011, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
79-
80-
[Benchmark]
81-
public int DecodeInteger()
82-
{
83-
QPackIntegerDecoder decoder = new();
84-
if (decoder.BeginTryDecode(_input[0], 7, out int result))
85-
return result;
86-
var index = 1;
87-
decoder.TryDecodeInteger(_input, ref index, out result);
88-
return result;
89-
}
90-
91-
[Benchmark]
92-
public int DecodeIntegerSimd()
93-
{
94-
QPackIntegerDecoder decoder = new();
95-
if (decoder.BeginTryDecode(_input[0], 7, out int result))
96-
return result;
97-
var index = 1;
98-
decoder.TryDecodeIntegerSimd(_input, ref index, out result);
99-
return result;
100-
}
101-
}
102-
10375
public class StdDevBenchmark
10476
{
10577
public List<int> _numbers = new();

0 commit comments

Comments
 (0)