Rucksack 1.0.0-beta
This is a prerelease version of Rucksack.
dotnet add package Rucksack --version 1.0.0-beta
NuGet\Install-Package Rucksack -Version 1.0.0-beta
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rucksack" Version="1.0.0-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rucksack --version 1.0.0-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Rucksack, 1.0.0-beta"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Rucksack as a Cake Addin #addin nuget:?package=Rucksack&version=1.0.0-beta&prerelease // Install Rucksack as a Cake Tool #tool nuget:?package=Rucksack&version=1.0.0-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Rucksack
A simple load testing library for .NET.
Getting Started
Currently, you must build the project from source and add as a reference manually. A NuGet release will come soon.
using Rucksack;
using Rucksack.LoadStrategies;
var options = new LoadTestOptions
{
LoadStrategy = new RepeatBurstLoadStrategy(
countPerInterval: 10,
interval: TimeSpan.FromSeconds(1),
totalDuration: TimeSpan.FromSeconds(10)),
};
await LoadTestRunner.Run(async () =>
{
// do something to put load on the system...
await Task.Delay(1000);
}, options);
Load Strategies
There are a couple built-in strategies for generating load, or you can implement ILoadStrategy
yourself for custom logic.
ConstantUserLoadStrategy
: Attempts to maintain a constant concurrent user load at each given check interval until the given duration has passed.OneShotBurstLoadStrategy
: Enqueue the given number of tasks all at once. Does not repeat.RepeatBurstLoadStrategy
: Repeat enqueueing the given count of tasks at each given interval until the given duration has passed.SequentialLoadStrategy
: An aggregate strategy that executes multiple load strategies in order. Great for creating scenarios like step up, then hold steady, then step down.SteppedBurstLoadStrategy
: Enqueue an increasing (or decreasing) burst of tasks in a stepwise manner, regardless of how many are still running.SteppedUserLoadStrategy
: Attempts to maintain an increasing (or decreasing) concurrent user load in a stepwise manner.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
- Spectre.Console (>= 0.49.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-beta | 66 | 8/12/2024 |