API reference
API-method testdiskspeed
Since
v24.3
Signature
struct testdiskspeed(
string dirPath,
int writeBufferSize,
int maxFileSize,
int timeout,
);
Description
The function runs a sequential write test followed by a sequential read test on a temporary file created in the given directory. The test uses regular buffered file I/O, so the result reflects the throughput the program itself gets from the file system, including the OS file cache. Each phase ends when the maximum file size is reached or the timeout period expires. The test file is always removed afterwards.
Downloads are paused while the test is running and are resumed afterwards (unless they were already paused before the test).
The test file size is limited so that at least 100 MiB of free space always remains on the disk; if there is not enough free space the method fails.
Arguments
- dirPath
(string)- The path to the directory where the test file will be created (UTF-8). - writeBuffer
(int)- The size of the block used for writing and reading (in KiB).0selects the default of 1 MiB. - maxFileSize
(int)- The maximum size of the file to be created (in GiB). - timeout
(int)- Timeout of each test phase, write and read (in seconds).
Return value
- SizeMB
(int)- Written data size (in MiB). - DurationMS
(int)- Write phase duration (in milliseconds). - ReadSizeMB
(int)- Read data size (in MiB). Sincev27.0. - ReadDurationMS
(int)- Read phase duration (in milliseconds). Sincev27.0.
Introduction
Installation manuals
- Installation on Windows
- Installation on Windows via WinGet
- Installation on macOS
- Installation on macOS via Homebrew
- Installation on Linux
- Installation on Docker
- Installation on Docker - LinuxServer.io version
- Installation on Android
- Installation on Synology
- Installation on QNAP
- Installation on other NAS devices
Building manuals
Configuration
- Backup And Restore Settings
- Performance Tips
- Choosing Cipher
- Behind Other Web Server
- TLS certificate verification
- What is the Default NZBGet Password?
- NZBGet Docker Setup Guide
- NZBGet Port Settings and Access Guide
- How to Configure NZBGet: Complete Setup Guide
- What Is Usenet?
- NZBGet 502 Error: Quick Fix Guide
- How to Upgrade from NZBGet v21.1 to the Latest NZBGet Version
- Slow NZBGet Speeds? Here’s How to Fix It
- NZBGet Performance Optimization Guide
- NZBGet Path and Folder Structure Guide
- How to Link NZBGet with Sonarr, Radarr, and Other Tools
- Sonarr vs VideoSort: How They Work with NZBGet
- NZBGet Storage Guide: Improve Performance with Smarter Path Setup
- How to Configure NZBGet on Android TV
- Using NZBGet with Sonarr and Radarr on Android TV
Performance tuning
- How to Optimize Usenet Performance in NZBGet
- NZBGet SystemHealth: Configuration and Environment Diagnostics
- Testing Usenet Speed and Performance in NZBGet
- Diagnosing and Maximizing Usenet Speeds in NZBGet
- Understanding Download Health in NZBGet
- Finding the Optimal Connection Count in NZBGet
- Primary vs Fill Servers Explained
- Understanding the Statistics Page in NZBGet
Usage
- Quick Filter
- Keyboard Shortcuts
- RSS and duplicate check
- VideoSort
- Console Mode
- Command Line Reference
- Performing Speed Tests
- NZBGet Interface Buttons Explained: What They Do and How to Use Them
- How to Use the NZBGet Status Tab
Development
Extensions
- Extension Scripts
- Post-processing scripts
- Scan Scripts
- Queue Scripts
- Scheduler Scripts
- Feed Scripts
- NZBGet Extension Manager: What It Is and How to Use It
- API reference
News server setup
- Astraweb
- BlockNews
- Cheapnews
- EasyNews
- Eweka
- FreeDiscussions
- Frugal Usenet
- GigaNews
- NewsDemon
- Newsgroup Ninja
- NewsgroupDirect
- Newshosting
- Pure Usenet
- SunnyUsenet
- Supernews
- theCubeNet
- ThunderNews
- TweakNews
- Usenet.Farm
- UsenetExpress
- UsenetServer
- UseNext
- ViperNews
- XLned
- XS News