.NET Core on Linux

$ dotnet --version

Opt out of the telemetry feature


Avoid segmentation faults on kernel 4.6.x (see issue 6016)

$ export COMPlus_INTERNAL_ThreadSuspendInjection=0

Performance measurement

For quick performance measurements, use good old System.Diagnostics.Stopwatch. On Windows, a simple option for logging the sampling of elapsed time is to write to the Event Log via System.Diagnostics.EventLog class.

Compile in release mode, close applications and stop services that are not needed. Don’t attach debuggers to the processes that you are measuring.