API reference
API-method testdiskspeed
Since
v24.3
Signature
bool testdiskspeed(
string dirPath,
int writeBufferSize,
int maxFileSize,
int timeout,
);
Description
The function writes data to a file until either the maximum file size is reached or the timeout period expires.
Arguments
- dirPath
(string)
- The path to the directory where the test file will be created. - writeBuffer
(int)
- The size of the buffer used for writing data to the file (in KiB). - maxFileSize
(int)
- The maximum size of the file to be created (in GiB). - timeout
(int)
- Test timeout (in seconds).
Return value
- SizeMB
(int)
- Written data size (in MiB). - DurationMS
(int)
- Test duration (in milliseconds).
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
Usage
- Quick Filter
- Keyboard Shortcuts
- RSS and duplicate check
- VideoSort
- Console Mode
- Command Line Reference
- Performing Speed Tests
Development
Extensions
- Extension Scripts
- Post-processing scripts
- Scan Scripts
- Queue Scripts
- Scheduler Scripts
- Feed Scripts
- API reference