Back to Messagepack Csharp

Performance analysis

sandbox/PerfNetFramework/README.md

3.1.41.1 KB
Original Source

Performance analysis

Build and use the release configuration of the project so you're measuring real perf with optimizations turned on:

dotnet build -c release  .\sandbox\PerfNetFramework\

Use PerfView to analyze performance to look for opportunities to improve. When collecting ETL traces, use these settings in the Collect->Run dialog:

SettingValue
Commanddotnet run -c release --project .\sandbox\PerfNetFramework\ -f net472 --no-build
Current Dird:\git\messagepack-csharp (or wherever your enlistment is)
Additional Providers*MessagePack-Benchmark
No V3.X NGenChecked

Start your investigation using the Events window to find the scenario that you're interested in, with these settings:

SettingValue
FilterMessagePack
Columns to displaycount DURATION_MSEC impl

Select the two Time MSec values that bound the scenario you're interested in, right-click and select CPU Stacks.