Skip to content

Use real measured run; document machine and Atlas variance - #1

Open
usamaamjid wants to merge 1 commit into
mainfrom
update/real-run-numbers
Open

Use real measured run; document machine and Atlas variance#1
usamaamjid wants to merge 1 commit into
mainfrom
update/real-run-numbers

Conversation

@usamaamjid

Copy link
Copy Markdown
Owner

The published numbers came from a fast dev box. These are from an actual run on the machine the post is written from.

What changed

Numbers are from a real run. Every figure in the README now matches what the benchmark actually printed.

Dropped a claim that didn't reproduce. The README said a 10-value $in was slower than a 10,000-value one. That gap was 3ms — run-to-run noise — and it reversed on slower hardware. The honest version: both return 10,000 docs and finish within 5% of each other, at ~8.5 µs/doc. Which one edges ahead is meaningless.

Documented the variance that actually exists. 10–30% between runs on one machine, up to 2x between machines.

Said plainly that none of this was run against Atlas. On a hosted cluster every query pays a round trip, large result sets are batched over the wire, shared tiers throttle CPU, and a working set over RAM turns reads into page faults. Each makes documents returned cost more — which strengthens the finding rather than undermining it, but readers shouldn't have to infer that.

Invited falsification. If someone's explain() output differs, that's a real finding and it should become an issue.

What didn't change

The plan is FETCH ← IXSCAN at every size, keysExamined is exactly n + 1, and chunking loses. Those held on every machine tried.

🤖 Generated with Claude Code

Numbers now come from an actual run rather than a faster dev box.
Drops the claim that a 10-value $in beat a 10,000-value one — that
gap was run-to-run noise and reversed on slower hardware. The
reproducible finding is that cost per document returned is flat
(~8.5 us/doc here) regardless of array size.

Also states explicitly that nothing here was run against Atlas.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

2 participants