Commit 2a96313
authored
[Perf Tests] [Storage] Porting storage-file-share and storage-file-datalake perf tests to the latest model (Azure#14075)
### Description
Makes changes to `storage-file-share` and `storage-file-datalake` based on Azure#13770 and Azure#14024
### Old
- `sdk/storage/storage-file-share/test/perfstress/track-1/` - npm project (but imports the perf framework)
- `sdk/storage/storage-file-share/test/perfstress/track-2/` - depends on src code like the regular tests
### New
- `sdk/storage/perf-tests/storage-file-share-track-1/` - Independent npm project (but imports the perf framework)
- `sdk/storage/perf-tests/storage-file-share/` - New project maintained through "rush" (depends on storage-file-share on master)
The following walk-through for executing perf tests uses storage-file-share as an example. (Check Azure#13740 for proposal 1 - old.)
## Testing Track 1
- `rush update`
- Navigate to `sdk\storage\perf-tests\storage-file-share-track-1`
- Run `npm run setup` (Builds the perf package and installs it for track-1 perf tests)
- Add .env file as suggested in the readme
- Run the tests as suggested by readme, example `npm run perf-test:node -- StorageFileShareDownloadTest --warmup 2 --duration 7 --iterations 2 --parallel 2`
## Testing Track 2 - unpublished(current master)
- `rush update`
- Navigate to `sdk\storage\perf-tests\storage-file-share`
- `rush build -t perf-test-storage-file-share`
- Add .env file as suggested in the readme
- Run the tests as suggested by readme, example `npm run perf-test:node -- StorageFileShareDownloadTest --warmup 2 --duration 7 --iterations 2 --parallel 2`
## Testing Track 2 - older versions
- Example: To test 12.2.0
- Update `"@azure/storage-file-share"` version in `package.json` to `12.2.0`
- Add a new exception in `common\config\rush\common-versions.json` under `allowedAlternativeVersions`
- `"@azure/storage-file-share": [..., "12.2.0"]`
- `rush update` (generates a new pnpm-lock file)
- Navigate to `sdk\storage\perf-tests\storage-file-share`
- `rush build -t perf-test-storage-file-share`
- Add .env file as suggested in the readme
- Run the tests as suggested by readme, example `npm run perf-test:node -- StorageFileShareDownloadTest --warmup 2 --duration 7 --iterations 2 --parallel 2`1 parent 96fe07e commit 2a96313
File tree
39 files changed
+287
-89
lines changed- common/config/rush
- sdk/storage
- perf-tests
- storage-blob
- storage-file-datalake
- test
- storage-file-datalake
- test/perfstress/track-2
39 files changed
+287
-89
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
655 | 665 | | |
656 | 666 | | |
657 | 667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments