Add benchmark for ls_cmd using a ext4 test image of around 1000 files#1622
Open
Add benchmark for ls_cmd using a ext4 test image of around 1000 files#1622
ls_cmd using a ext4 test image of around 1000 files#1622Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1622 +/- ##
=======================================
Coverage 81.09% 81.09%
=======================================
Files 402 402
Lines 35264 35264
=======================================
Hits 28599 28599
Misses 6665 6665
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Merging this PR will not alter performance
Performance Changes
Comparing |
b8d3a1f to
1b6be8a
Compare
Schamper
requested changes
Mar 16, 2026
Schamper
requested changes
Mar 17, 2026
8ab4b02 to
f939c33
Compare
9499734 to
9bae921
Compare
Schamper
requested changes
Mar 18, 2026
1411df3 to
af2224f
Compare
2e8c03a to
b08cff4
Compare
Schamper
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a benchmark test for the
ls_cmdintarget-shelland a new test fixture providing an ext4 image with around 1000 files for doing the directory listing.The benchmark is in preparation of implementing #1577 and some other related issues, which will contain some refactoring regarding efficiency.
The test image is derived from
debian-live-13.3.0-amd64-standard.isoand only the/bindir and some files from/etcare copied over. The file contents in/binare also all sparse (NULL bytes) so the image compresses well. The test data mainly focuses on what is useful for directory listings, such as filenames, permissions, owner and group.The compressed test image itself is only 100kb.