🟡 [M22] cold startup benchmark 因 clear_file_cache 失败被静默跳过 #41
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
startup::run在非 quick 模式下只有clear_file_cache(&test_file).is_ok()时才运行 cold open benchmarks;失败时没有任何提示。影响
用户会缺失冷启动数据,但报告中没有解释原因。
位置
crates/bench/src/suites/startup.rs:42建议
改成
match,失败时输出WARNING: Cannot clear file cache, skipping cold startup benchmarks: {e}。Fixed in
5024796.Changes in crates/bench/src/suites/startup.rs: