dotnet-core-benchmark-test BenchmarkDotNetのサンプル Feature .NET Core 2.2 BenchmarkDotNet Note FirstOrDefault でローカル変数のキャプチャ有・無でのパフォーマンスの差異を計測しています。