Skip to content

Instantly share code, notes, and snippets.

@alonam
Last active August 29, 2015 14:24
Show Gist options
  • Select an option

  • Save alonam/b93eebfa98c21730c34c to your computer and use it in GitHub Desktop.

Select an option

Save alonam/b93eebfa98c21730c34c to your computer and use it in GitHub Desktop.
NLoad Example
var loadTest = NLoad.Test<MyTest>()
.WithNumberOfThreads(100)
.WithDurationOf(TimeSpan.FromMinutes(5))
.WithDeleyBetweenThreadStart(TimeSpan.FromMilliseconds(50))
.OnHeartbeat((s, e) => Console.WriteLine(e.Throughput))
.Build();
var result = loadTest.Run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment