-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add Bearer Token Challenge Auth Policy performance test. #19360
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
| /** | ||
| * The Performance Test class for Bearer Token Authentication Challenge Policy. | ||
| */ | ||
| public class ARMChallengeAuthenticationPolicyTest extends PerfStressTest<PerfStressOptions> { |
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.
Why is this named ARM? This isn't related to the management plane right?
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.
Yes, this policy is for ARM SDK.
We will work with ARM folks and move it there later on.
This PR adds the package `@azure-tests/perf-identity` and a first performance test for Identity. Here's the output from one run I did locally: ``` === Calling globalSetup() once for (all) the instance(s) of ClientSecretCredentialPersistenceTest === === warmup mode, iteration 0. Logs every 1s === Current Total Average 1589 1589 1590.49 === warmup mode, results of iteration 1 === Completed 1,591 operations in a weighted-average of 1.00s (1,589.46 ops/s, 0.001 s/op) === test mode, iteration 0. Logs every 1s === Current Total Average credential?: ClientSecretCredential; 2439 2439 2442.35 3036 5475 2739.85 3080 8555 2856.42 2789 11344 2820.61 3186 14530 2893.90 3110 17640 2927.82 3258 20898 2973.09 2981 23879 2974.87 3188 27067 2997.42 === test mode, results of iteration 1 === Completed 30,051 operations in a weighted-average of 10.00s (3,005.92 ops/s, 0.000 s/op) ``` I used Key Vault Keys as a reference to write these files: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/keyvault/perf-tests/keyvault-keys As far as I could tell form Java's PR ([link](Azure/azure-sdk-for-java#19360)) the two goals for the Identity performance tests at the moment are: 1. Testing the challenge processing features on core, for which I have made a separate issue, since this feature is not yet in our main branch: #14633 . - The separation will also help reduce the number of changes to see when that perf test comes, since this one will have added all of the necessary files and folders around. 2. Testing the persistence feature, which this PR includes. Let me know how it looks! Any feedback appreciated. Fixes #14632
|
Hi @g2vinay. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days. |
|
Hi @g2vinay. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing "/reopen" if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the "no-recent-activity" label; otherwise, this is likely to be closed again with the next cleanup pass. |
Adds Performance Test for Bearer Token Challenge Auth Policy and for the Token Caching API in Identity SDK,
Follows this flow for the Challenge Authentication policy performance test.
Follows this flow for the Token Caching API performance test.