Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions tests/test_appender.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,11 @@ def test_appending_beats_inserting_by_the_margin_that_makes_it_worth_having(

# Measured at about 150 times on this machine at this row count and
# rising with it, since one commit is one commit however many rows
# it carries. The gate is 20, which is the number that says the
# appender is still batching rather than the number it hits.
assert inserting > 20 * appending, (
# it carries. It is 18 on a shared CI runner, where a commit costs
# 25 ms of somebody else's disk and the appender's single one is
# most of what it spends, so the gate is 5: the number that says the
# appender is still batching rather than the number either machine
# hits.
assert inserting > 5 * appending, (
f"{COMPARED} rows: {inserting * 1000:.0f} ms inserted, {appending * 1000:.0f} ms appended"
)
Loading