性能优化,减少Lambda闭包分配
This commit is contained in:
@@ -181,7 +181,7 @@ public class MainHostedService : BackgroundService
|
||||
new { 条目 = "耗时", 值 = elapsedTime.ToString("F2") + " 秒" },
|
||||
new
|
||||
{
|
||||
条目 = "平均输出速度",
|
||||
条目 = "平均处理速度",
|
||||
值 = (_context.OutputCount / elapsedTime).ToString("F2") + " 条记录/秒"
|
||||
},
|
||||
new { 条目 = "内存占用峰值", 值 = _context.MaxMemoryUsage + " 兆字节" }
|
||||
|
Reference in New Issue
Block a user