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.
<PackageVersion Include="Rucksack" Version="1.0.0-beta" />
                    
Directory.Packages.props
<PackageReference Include="Rucksack" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rucksack --version 1.0.0-beta
                    
#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.
#:package Rucksack@1.0.0-beta
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rucksack&version=1.0.0-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Rucksack&version=1.0.0-beta&prerelease
                    
Install as a Cake Tool

Rucksack

CI Build

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 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 190 8/12/2024