============================================== DirtyThreshold 脏页阈值性能对比测试 ============================================== 测试场景: 插入 50000 行数据(禁用防抖,仅靠脏页阈值) DirtyThreshold= 20页 ( 0.3MB) | 插入 50000行 | 耗时: 1.47s | 文件: 4.1MB DirtyThreshold= 100页 ( 1.6MB) | 插入 50000行 | 耗时: 1.47s | 文件: 4.7MB DirtyThreshold= 500页 ( 7.8MB) | 插入 50000行 | 耗时: 1.41s | 文件: 0.0MB DirtyThreshold=2000页 ( 31.2MB) | 插入 50000行 | 耗时: 1.36s | 文件: 0.0MB DirtyThreshold=5000页 ( 78.1MB) | 插入 50000行 | 耗时: 1.35s | 文件: 0.0MB 说明: - 阈值越小 → Commit 越频繁 → 磁盘 I/O 越多 → 性能越差 - 阈值越大 → 内存占用越高 → Commit 次数越少 → 性能越好 - 2000 页 (32MB) 是性能和内存的平衡点