Files
plist-cil/plist-cil.benchmark/BinaryPropertyListWriterBenchmarks.cs

17 lines
479 B
C#
Raw Normal View History

using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
namespace Claunia.PropertyList.Benchmark
{
[SimpleJob(RuntimeMoniker.NetCoreApp50), MemoryDiagnoser]
public class BinaryPropertyListWriterBenchmarks
{
2018-07-09 19:57:08 +01:00
NSObject data;
[GlobalSetup]
public void Setup() => data = PropertyListParser.Parse("plist.bin");
[Benchmark]
public byte[] WriteLargePropertylistTest() => BinaryPropertyListWriter.WriteToArray(data);
}
2018-07-09 19:57:08 +01:00
}