mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 11:04:26 +00:00
24 lines
529 B
C#
24 lines
529 B
C#
using BenchmarkDotNet.Attributes;
|
|
using BenchmarkDotNet.Attributes.Jobs;
|
|
|
|
namespace Claunia.PropertyList.Benchmark
|
|
{
|
|
[CoreJob]
|
|
[MemoryDiagnoser]
|
|
public class BinaryPropertyListWriterBenchmarks
|
|
{
|
|
NSObject data;
|
|
|
|
[GlobalSetup]
|
|
public void Setup()
|
|
{
|
|
data = PropertyListParser.Parse("plist.bin");
|
|
}
|
|
|
|
[Benchmark]
|
|
public byte[] WriteLargePropertylistTest()
|
|
{
|
|
return BinaryPropertyListWriter.WriteToArray(data);
|
|
}
|
|
}
|
|
} |