vt-loadtest
2.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global vt-loadtest --version 2.0.3
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local vt-loadtest --version 2.0.3
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=vt-loadtest&version=2.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package vt-loadtest --version 2.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
LoadTest
LoadTest is a simple website load tester packaged in a .NET tool. It's not fully-featured and is just a toy/tool for myself, but feel free to use it.
Install
You need the .NET SDK to run this tool.
dotnet tool install --global vt-loadtest
vt-loadtest --help
Build
You need the .NET SDK to build this project.
./build/build.ps1
To install a local build:
dotnet tool uninstall -g vt-loadtest
dotnet tool install -g vt-loadtest --add-source ./artifacts/dist/pre-release --prerelease
Usage
If running from source, replace vt-loadtest
with dotnet run --
.
# Load test using a remote sitemap on 2 threads. Works on nested sitemap indexes.
vt-loadtest run --path 'https://developers.google.com/tasks/sitemap.xml' --threads 2
# Load test using a remote sitemap index for 30 seconds and limit the rate of requests.
vt-loadtest run --path 'https://developers.google.com/sitemap.xml' --seconds 30 --delay
# Use a local list of URLs rather than a site map. Force at least 20% chance of 404.
vt-loadtest run --path './samples/sitemapUrls.txt' --chance-404 20
# Crawl a sitemap index and write the URLs to a local file to speed up repeat runs where sitemap retrieval is slow.
vt-loadtest make-list --path 'https://developers.google.com/sitemap.xml' --output './samples/url-list.txt'
See vt-loadtest -h
for more.
Known issues
URLs are technically case-sensitive, but some file systems aren't (Windows). This means when archiving pages, you may only get one page or the other in the event that the web server treats them as 2 different URLs (which is bad for SEO).
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.
This package has no dependencies.