claunia / plist-cil

C#/.NET parser for Apple and GnuStep Property List (aka plist), based on Java's dd-plist
Other
54 stars 17 forks source link

Add benchmarks for binary property list parsing #37

Closed qmfrederik closed 6 years ago

qmfrederik commented 6 years ago

This PR adds a very basic benchmark which tries to serialize a medium-size (~150KB) binary property list, and keeps track of memory usage and CPU time.

qmfrederik commented 6 years ago

Here are the results for Linux and Windows:

Windows

Method Mean Error StdDev Median Gen 0 Gen 1 Allocated
ReadLargePropertylistTest 3.930 ms 0.1290 ms 0.3742 ms 3.779 ms 304.6875 152.3438 1.84 MB

Linux

Method Mean Error StdDev Gen 0 Gen 1 Allocated
ReadLargePropertylistTest 5.015 ms 0.1171 ms 0.3321 ms 296.8750 148.4375 1.84 MB
qmfrederik commented 6 years ago

@claunia Any chance you can get this merged? I can then split off #38 in smaller PRs and we'll get benchmarks for each of them - so we can figure out what impact they have on performance.

claunia commented 6 years ago

Later today