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