Skip to content

Conversation

@snowmead
Copy link
Contributor

@snowmead snowmead commented Dec 16, 2025

Summary

Updates the delete_files_bucket and delete_files_bsp benchmarks to capture the worst-case scenario where files being deleted have active storage requests with maximum BSP participation.

Weight Impact

Function Min Execution Time DB Reads DB Writes
delete_files_bucket 394ms 11 + 41n 5 + 42n
delete_files_bsp 533ms 26 + 41n 7 + 42n

… worst-case scenario

Updated benchmarks to include active storage requests for each file being
deleted, ensuring weights capture the cost of cleanup_storage_request and
add_incomplete_storage_request operations. This reflects the worst-case
scenario where files have pending storage requests that must be cleaned up.
- Register BSP via add_bsp_to_provider_storage in delete_files_bucket
  to match patterns used in other benchmarks
- Consolidate "worst-case scenario" mentions to single clear comment
- Remove redundant inline comment headers
@snowmead snowmead added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D3-trivial👶 PR contains trivial changes that do not require an audit not-breaking Does not need to be mentioned in breaking changes labels Dec 17, 2025
snowmead and others added 6 commits December 17, 2025 09:11
Update delete_files_bucket and delete_files_bsp benchmarks to add
MaxReplicationTarget BSPs per storage request instead of just 1. This
ensures the weights properly account for the worst-case cost of:
- Iterating over all BSPs in IncompleteStorageRequestMetadata::from
- Draining all BSPs via drain_prefix in cleanup_storage_request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D3-trivial👶 PR contains trivial changes that do not require an audit not-breaking Does not need to be mentioned in breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants