Last active
August 29, 2015 14:24
-
-
Save alonam/b93eebfa98c21730c34c to your computer and use it in GitHub Desktop.
NLoad Example
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
| 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