GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Skip To Content
  • Packages
  • Upload
  • Statistics
  • Documentation
  • Downloads
  • Blog
  • Sign in

This view

  • Original page
  • New address

GeezerVison is showing www.nuget.org — NetPace.Core 0.30.0



NetPace.Core 0.30.0

Prefix Reserved
.NET 10.0 This package targets .NET 10.0. The package is compatible with this framework or higher.
  • .NET CLI
  • PMC
  • PackageReference
  • CPM
  • Paket CLI
  • Script & Interactive
  • File-Based Apps
  • Cake
dotnet add package NetPace.Core --version 0.30.0
                    
NuGet\Install-Package NetPace.Core -Version 0.30.0
                    
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="NetPace.Core" Version="0.30.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetPace.Core" Version="0.30.0" />
                    
Directory.Packages.props
<PackageReference Include="NetPace.Core" />
                    
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 NetPace.Core --version 0.30.0
                    
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NetPace.Core, 0.30.0"
                    
#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 [email protected]
                    
#: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=NetPace.Core&version=0.30.0
                    
Install as a Cake Addin
#tool nuget:?package=NetPace.Core&version=0.30.0
                    
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
  • README
  • Frameworks
  • Dependencies
  • Used By
  • Versions
  • Release Notes

NetPace.Core

Network speed test library including server discovery, latency measurement, download and upload speed testing.

NetPace is pre-1.0. Any release may change or remove command-line options, output formats or NetPace.Core library members, without a deprecation period. Backward compatibility will be maintained from 1.0.0 onwards.

Fan of NetPace? Consider giving the repo a star ⭐ - it helps others find it too.

Quick Start

using NetPace.Core;
using NetPace.Core.Clients.Ookla;

var speedTester = new OoklaSpeedtest() as ISpeedTestService;

var servers = await speedTester.GetServersAsync();
var fastest = await speedTester.GetFastestServerByLatencyAsync(servers);

var downloadResult = await speedTester.GetDownloadSpeedAsync(fastest.Server);
var uploadResult = await speedTester.GetUploadSpeedAsync(fastest.Server);

Console.WriteLine($"{fastest.Server.Sponsor} ({fastest.LatencyMilliseconds} ms)");
Console.WriteLine($"Download: {downloadResult.GetSpeedString(SpeedUnit.BitsPerSecond, SpeedUnitSystem.SI)}");
Console.WriteLine($"Upload: {uploadResult.GetSpeedString(SpeedUnit.BitsPerSecond, SpeedUnitSystem.SI)}");

The example above uses the OoklaSpeedtest implementation which uses Ookla Speedtest servers under the hood. Ookla and Speedtest are trademarks of Ookla, LLC; this project is not affiliated with or endorsed by Ookla.

LibreSpeedtest is the other implementation, for a LibreSpeed server you host yourself. It speaks the same ISpeedTestService and reports the same figures, with the server named by the address LibreSpeed is installed at. It discovers no servers, so GetServersAsync throws NotSupportedException; screening a list you supply yourself works as it does for Ookla.

using NetPace.Core.Clients.LibreSpeed;

var speedTester = new LibreSpeedtest() as ISpeedTestService;

var latency = await speedTester.GetServerLatencyAsync("http://pi.local:8080/");
var downloadResult = await speedTester.GetDownloadSpeedAsync(latency.Server);

See the full example on GitHub.

API Overview

ISpeedTestService is the primary interface you will interact with.

public interface ISpeedTestService
{
    public Task<IServer[]> GetServersAsync(CancellationToken cancellationToken = default);

    public Task<LatencyTestResult> GetServerLatencyAsync(IServer server, CancellationToken cancellationToken = default);
    public Task<LatencyTestResult> GetServerLatencyAsync(IServer server, IProgress<LatencyTestProgress> progress, CancellationToken cancellationToken = default);
    public Task<LatencyTestResult> GetServerLatencyAsync(IServer server, IProgress<LatencyTestProgress>? progress, IProgress<RequestDiagnostic>? diagnostics, CancellationToken cancellationToken = default, CancellationToken stopAndReportToken = default);

    public Task<LatencyTestResult> GetServerLatencyAsync(string serverUrl, CancellationToken cancellationToken = default);
    public Task<LatencyTestResult> GetServerLatencyAsync(string serverUrl, IProgress<LatencyTestProgress> progress, CancellationToken cancellationToken = default);
    public Task<LatencyTestResult> GetServerLatencyAsync(string serverUrl, IProgress<LatencyTestProgress>? progress, IProgress<RequestDiagnostic>? diagnostics, CancellationToken cancellationToken = default, CancellationToken stopAndReportToken = default);

    public Task<LatencyTestResult> GetFastestServerByLatencyAsync(IServer[] servers, CancellationToken cancellationToken = default);
    public Task<LatencyTestResult> GetFastestServerByLatencyAsync(IServer[] servers, IProgress<SpeedTestProgress> progress, CancellationToken cancellationToken = default);
    public Task<LatencyTestResult> GetFastestServerByLatencyAsync(IServer[] servers, IProgress<SpeedTestProgress>? progress, IProgress<RequestDiagnostic>? diagnostics, CancellationToken cancellationToken = default);

    public Task<SpeedTestResult> GetDownloadSpeedAsync(IServer server, CancellationToken cancellationToken = default);
    public Task<SpeedTestResult> GetDownloadSpeedAsync(IServer server, IProgress<SpeedTestProgress> progress, CancellationToken cancellationToken = default);
    public Task<SpeedTestResult> GetDownloadSpeedAsync(IServer server, IProgress<SpeedTestProgress>? progress, IProgress<RequestDiagnostic>? diagnostics, CancellationToken cancellationToken = default, CancellationToken stopAndReportToken = default);

    public Task<SpeedTestResult> GetUploadSpeedAsync(IServer server, CancellationToken cancellationToken = default);
    public Task<SpeedTestResult> GetUploadSpeedAsync(IServer server, IProgress<SpeedTestProgress> progress, CancellationToken cancellationToken = default);
    public Task<SpeedTestResult> GetUploadSpeedAsync(IServer server, IProgress<SpeedTestProgress>? progress, IProgress<RequestDiagnostic>? diagnostics, CancellationToken cancellationToken = default, CancellationToken stopAndReportToken = default);
}

See ISpeedTestService on GitHub.

Testing Your Code

NetPace.Core includes test doubles for the library's interfaces so you can test your code without making real network calls. They are a supported part of the library: each double's documented behaviour is covered by its own tests, so a release cannot change one of these figures without a test failing first.

  • SpeedTestStub - Simple stub returning fixed values with configurable delays
  • SpeedTestMock - Fully configurable mock with injectable delegate functions
  • VariableSpeedTester - Returns different speeds on each call (simulates variable network conditions)
  • FaultySpeedTester - Simulates network failures and timeouts (for testing error handling)
  • DelayProviderStub - Stands in for IDelayProvider, recording the pauses your code asked for instead of waiting them out

See the implementations in NetPace.Core.Clients.Testing and their usage throughout the solution.

Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Include prerelease
Include vulnerable
Include deprecated
Version Downloads Last Updated
0.30.0 95 11/22/2026
0.29.0 107 11/17/2026
0.28.0 6,237 10/21/2026
0.28.0-rc4 112 10/21/2026
0.28.0-rc3 105 10/21/2026
0.28.0-rc2 110 10/20/2026
0.27.0 108 10/17/2026
0.26.0 116 10/13/2026
0.25.0 156 9/1/2026
0.24.0 131 9/1/2026
0.23.1 324 5/13/2026
0.23.0 148 5/12/2026
0.22.3 167 5/9/2026
0.22.2 154 5/9/2026
0.22.1 155 5/9/2026
0.22.0 166 5/9/2026
0.21.1 161 4/16/2026
0.21.0 144 4/16/2026
0.20.0 285 12/6/2025
0.19.0 427 11/30/2025
Loading failed

https://github.com/FrankRay78/NetPace/releases

Downloads
Full stats →
Total 16.2K
Current version 95
Per day average 44
About
  • Last updated 11/22/2026
  • Project website
  • Source repository
  • MIT license
  • Download package  (124.96 KB)
  • Open in NuGet Package Explorer
  • Open in NuGet Trends
  • Report package
Owners
Contact owners →
  • FrankRay78 gravatar FrankRay78

speedtest internet-speed-checker internet-speed network-speed internet-speed-test network-speed-meter network-speed-test library dotnet dotnet-library

Frank Ray

Use the Atom feed to subscribe to new versions of NetPace.Core

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.