Skip to content

Give both sides the same weather - #24

Merged
tamnd merged 1 commit into
mainfrom
milli-precision
Aug 19, 2026
Merged

tamnd merged 1 commit into
mainfrom
milli-precision

Conversation

@tamnd

@tamnd tamnd commented Aug 19, 2026

Copy link
Copy Markdown
Owner

tools/versus_duckdb.py timed all of one call and then all of the other, and this is a laptop. Run to run, DuckDB's Arrow figure moved between 15 and 30 milliseconds and its pandas figure between 52 and 146, which is not DuckDB varying by three times. It is whichever call went second getting whatever the machine was doing by then, and fastest of five is not enough runs to filter that out when something else on the box is sitting at one whole core.

The runs alternate now, ours then theirs then ours again, nine of each, and both keep their own fastest. That matters more than the count does: a noisy window lands on both sides of the comparison rather than on one of them. Two consecutive runs of the changed script agree to within a tenth on every ratio in it, where the old one disagreed by two times on half of them.

Also a decimal on a figure below ten milliseconds, because DuckDB's execute is a third of one and the table was printing it as 0 ms, which reads as a measurement of nothing rather than as the fastest thing in the table.

No library code changes, so the suite is untouched at 597 passed, 5 skipped.

The comparison script timed all of one call and then all of the other,
and this is a laptop. Run to run, DuckDB's Arrow figure moved between
15 and 30 milliseconds and its pandas figure between 52 and 146, which
is not DuckDB varying by three times. It is whichever call went second
getting whatever the machine was doing by then, and fastest of five is
not enough runs to filter that out when something else on the box is
sitting at one whole core.

The runs alternate now, ours then theirs then ours again, nine of each,
and both keep their own fastest. That matters more than the count does:
a noisy window now lands on both sides of the comparison rather than on
one of them. Two consecutive runs of the changed script agree to within
a tenth on every ratio in it, where the old one disagreed by two times
on half of them.

Also a decimal on a figure below ten milliseconds, because DuckDB's
execute is a third of one and the table was printing it as 0 ms, which
reads as a measurement of nothing rather than as the fastest thing in
the table.
@tamnd
tamnd merged commit b24182a into main Aug 19, 2026
10 of 11 checks passed
@tamnd
tamnd deleted the milli-precision branch August 19, 2026 06:50
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