Created
March 16, 2022 21:17
-
-
Save neuecc/d87d4810bf7d0d626f3ebe1cf0f9937b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| using DFrame.RestSdk; | |
| var client = new DFrameClient("http://localhost:7312/"); | |
| // start request | |
| await client.ExecuteRequestAsync(new() | |
| { | |
| Workload = "SampleWorkload", | |
| Concurrency = 10, | |
| TotalRequest = 100000 | |
| }); | |
| // loadtest is running, wait complete. | |
| await client.WaitUntilCanExecute(); | |
| // get summary and results[] | |
| var result = await client.GetLatestResultAsync(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment