-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added encryption option to perf tests * ci fixes and pr feedback * Match encryption parameter with Python * Fixing some perf test stuff * Fixed perf tests * Added abstract upload and download tests * Added changes to perf configs * Fixed bug about trying to get block blob clients from encrypted clients * Fixed another bug * Fix greedy operators * Reverted ref to tools draft pr. Pr feedback
- Loading branch information
1 parent
7ea2fa9
commit ffe6d74
Showing
15 changed files
with
107 additions
and
81 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 |
---|---|---|
|
@@ -37,7 +37,6 @@ resources: | |
type: github | ||
endpoint: Azure | ||
name: Azure/azure-sdk-tools | ||
ref: main | ||
|
||
jobs: | ||
- job: Perf | ||
|
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
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
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
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
23 changes: 23 additions & 0 deletions
23
...ure-storage-perf/src/main/java/com/azure/storage/blob/perf/core/AbstractDownloadTest.java
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,23 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.storage.blob.perf.core; | ||
|
||
import com.azure.storage.blob.perf.BlobPerfStressOptions; | ||
import reactor.core.publisher.Mono; | ||
|
||
import static com.azure.perf.test.core.TestDataCreationHelper.createRandomByteBufferFlux; | ||
|
||
public abstract class AbstractDownloadTest <TOptions extends BlobPerfStressOptions> extends BlobTestBase<TOptions> { | ||
|
||
public AbstractDownloadTest(TOptions options) { | ||
super(options, BLOB_NAME_PREFIX); | ||
} | ||
|
||
// Upload one blob for the whole test run. All tests can download the same blob | ||
public Mono<Void> globalSetupAsync() { | ||
return super.globalSetupAsync() | ||
.then(blobAsyncClient.upload(createRandomByteBufferFlux(options.getSize()), null)) | ||
.then(); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...azure-storage-perf/src/main/java/com/azure/storage/blob/perf/core/AbstractUploadTest.java
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,26 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.storage.blob.perf.core; | ||
|
||
import com.azure.storage.blob.perf.BlobPerfStressOptions; | ||
import reactor.core.publisher.Mono; | ||
|
||
import java.util.UUID; | ||
|
||
import static com.azure.perf.test.core.TestDataCreationHelper.createRandomByteBufferFlux; | ||
|
||
public abstract class AbstractUploadTest<TOptions extends BlobPerfStressOptions> extends BlobTestBase<TOptions> { | ||
|
||
public AbstractUploadTest(TOptions options) { | ||
super(options, BLOB_NAME_PREFIX + UUID.randomUUID()); | ||
} | ||
|
||
@Override | ||
public Mono<Void> setupAsync() { | ||
// Upload one blob per test | ||
return super.setupAsync() | ||
.then(blobAsyncClient.upload(createRandomByteBufferFlux(options.getSize()), null)) | ||
.then(); | ||
} | ||
} |
Oops, something went wrong.