8000 ci(bench): fsync the copied file fixture before measuring (#426) by adityamukho · Pull Request #481 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

ci(bench): fsync the copied file fixture before measuring (#426) - #481

Merged
adityamukho merged 1 commit into
mainfrom
fix/426-bench-fixture-sync
Oct 8, 2026
Merged

adityamukho merged 1 commit into
mainfrom
fix/426-bench-fixture-sync

Conversation

@adityamukho
@adityamukho adityamukho commented Oct 8, 2026 •
Copy link
Copy Markdown
Collaborator

Summary

insert_file/*/1m has been 3–10x slower on about half the nightly runs since 2026-09-27 (#426). This is caused by the bench harness, not by a regression in the library.

Evidence

Test plan

  • cargo bench --no-run, cargo clippy --all-features -- -D warnings, cargo fmt --check
  • Manual bench dispatch on this branch (run 37727357849): 1m vs 100k = 331/331 µs single_fact, 851/833 µs batch_100, 327/331 µs explicit_tx
  • Nightly runs after merge stay clean before Benchmark regression: insert_file (main) #426 is closed

Refs #426

🤖 Generated with Claude Code

https://claude.ai/code/session_015GgLEs8YozJjYhwPEYgTUn

populate_file copies a prebuilt fixture (#393) but never synced the copy,
so its dirty pages were still being written back while insert_file
measured. Every WAL fsync waited on that writeback: the 1m copy made
insert_file/*/1m 3-10x slower on about half the nightly runs since
2026-09-27, with 100k and smaller unaffected. Not a library regression:
84bf375 -> ab65350 changed no src/ file.

Refs #426

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015GgLEs8YozJjYhwPEYgTUn
@codecov
codecov Bot commented Oct 8, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@adityamukho
adityamukho merged commit 7c3cc77 into main Oct 8, 2026
43 checks passed
@adityamukho
adityamukho deleted the fix/426-bench-fixture-sync branch October 8, 2026 04:52
adityamukho added a commit that referenced this pull request Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0