-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rename metrics for non nested scenario for hns bucket (#2339)
* added check directory functions and its unit tests * adding function to parse config file and generate dir in bucket * exit_code set to 1 * correct format * refactors * test formatting * function to avoid code repitition * added check directory functions and its unit tests * moving mount functions to utils * compute metrics from time of operation * uploading metrics to gsheet * nits * testing non nested scenario for gcs bucket * unit tests * using single config file flag along with bucket type * correcting header checks * refactor to avoid code repitition
- Loading branch information
1 parent
4638976
commit 8288d45
Showing
5 changed files
with
255 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ allowedLicenses: | |
sourceFileExtensions: | ||
- 'go' | ||
- 'Makefile' | ||
- 'json' | ||
- 'yml' | ||
- 'txt' | ||
- 'py' | ||
|
93 changes: 93 additions & 0 deletions
93
perfmetrics/scripts/hns_rename_folders_metrics/config-flat.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"name": "hns-rename-benchmark-flat" , | ||
"folders" : { | ||
"num_folders": 3, | ||
"folder_structure" : [ | ||
{ | ||
"name": "1k_files_rename_test_0" , | ||
"num_files": 1000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
}, | ||
{ | ||
"name": "5k_files_rename_test_0" , | ||
"num_files": 5000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
}, | ||
{ | ||
"name": "10k_files_rename_test_0" , | ||
"num_files": 10000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
} | ||
] | ||
}, | ||
"nested_folders": { | ||
"folder_name": "nested_folder_rename_test", | ||
"num_folders": 10, | ||
"folder_structure" : [ | ||
{ | ||
"name": "nested_folder_1_0" , | ||
"num_files": 1000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
}, | ||
{ | ||
"name": "nested_folder_2_0" , | ||
"num_files": 1000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
}, | ||
{ | ||
"name": "nested_folder_3_0" , | ||
"num_files": 1000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
}, | ||
{ | ||
"name": "nested_folder_4_0" , | ||
"num_files": 1000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
}, | ||
{ | ||
"name": "nested_folder_5_0" , | ||
"num_files": 1000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
}, | ||
{ | ||
"name": "nested_folder_6_0" , | ||
"num_files": 1000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
}, | ||
{ | ||
"name": "nested_folder_7_0" , | ||
"num_files": 1000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
}, | ||
{ | ||
"name": "nested_folder_8_0" , | ||
"num_files": 1000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
}, | ||
{ | ||
"name": "nested_folder_9_0" , | ||
"num_files": 1000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
}, | ||
{ | ||
"name": "nested_folder_10_0" , | ||
"num_files": 1000 , | ||
"file_name_prefix": "file" , | ||
"file_size": "1kb" | ||
} | ||
] | ||
|
||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ts/hns_rename_folders_metrics/config.json → ...ns_rename_folders_metrics/config-hns.json
This file contains 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
This file contains 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
This file contains 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