Fix up build issues
This commit is contained in:
Родитель
2153355af7
Коммит
5c0220eecc
|
@ -4,6 +4,7 @@
|
|||
extern alias newmsgpack;
|
||||
extern alias oldmsgpack;
|
||||
|
||||
using System;
|
||||
using BenchmarkDotNet.Attributes;
|
||||
using BenchmarkDotNet.Configs;
|
||||
using Nerdbank.Streams;
|
||||
|
@ -12,7 +13,7 @@ namespace PerfBenchmarkDotNet
|
|||
{
|
||||
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
|
||||
[CategoriesColumn]
|
||||
public class MessagePackWriterBenchmark
|
||||
public sealed class MessagePackWriterBenchmark : IDisposable
|
||||
{
|
||||
private const int RepsOverArray = 300 * 1024;
|
||||
private readonly Sequence<byte> sequence = new Sequence<byte>();
|
||||
|
@ -148,5 +149,10 @@ namespace PerfBenchmarkDotNet
|
|||
offset = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
this.sequence.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче