- 
  Notifications
 You must be signed in to change notification settings 
- 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
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:
No security concerns identified
No security vulnerabilities detected by AI analysis. Human verification advised for critical code.🎫 No ticket provided
- [ ] Create ticket/issue <!-- /create_ticket --create_ticket=true -->
</details></td></tr>
Codebase context is not defined
Follow the guide to enable codebase context checks.
No custom compliance provided
Follow the guide to enable custom compliance check.
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: 
 | ||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
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