Skip to content

Instantly share code, notes, and snippets.

@neuecc
Created March 16, 2022 21:17
Show Gist options
  • Select an option

  • Save neuecc/d87d4810bf7d0d626f3ebe1cf0f9937b to your computer and use it in GitHub Desktop.

Select an option

Save neuecc/d87d4810bf7d0d626f3ebe1cf0f9937b to your computer and use it in GitHub Desktop.
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