-
Couldn't load subscription status.
- Fork 285
fileservice: add write benchmark #22670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
pkg/fileservice/utils.go
Outdated
| "slices" | ||
| ) | ||
|
|
||
| const ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These has been defined in common/const.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue https://github.com/matrixorigin/MO-cloud/issues/6517
What this PR does / why we need it:
add benchmark for write
PR Type
Enhancement, Tests
Description
Add comprehensive write benchmarks for FileService with multiple file sizes
Implement parallel write benchmark testing with 1K, 4K, and 128K file sizes
Define size constants (KB, MB, GB, TB, PB) for reusable benchmark configurations
Update S3FS benchmark test with missing ObjectStorageArguments fields
Diagram Walkthrough
File Walkthrough
file_service_bench_test.go
Add parallel write benchmarks with multiple file sizespkg/fileservice/file_service_bench_test.go
fmtandsync/atomicimports for benchmark implementationbenchmarkWritefunction with parallel write testingwrites
utils.go
Add reusable size constants for benchmarkspkg/fileservice/utils.go
s3_fs_test.go
Complete ObjectStorageArguments with missing fieldspkg/fileservice/s3_fs_test.go
IsMiniofield set to false in ObjectStorageArgumentsRegionfield set to empty stringKeyIDandKeySecretfields set to empty strings