Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A Rust tool for disk I/O performance testing, similar to dd"

Notifications You must be signed in to change notification settings

olest/oxidised-dd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oxidised-dd

A Rust tool to perform write and read tests similar to the Linux dd command.

This is a super simple tool and its main purpose is to teach me Rust :-)

Features

  • Write and read performance testing - Measure disk I/O performance
  • Flexible size parsing - Supports K, M, G suffixes (e.g., 1M, 500K, 2G)
  • Optional disk sync - --sync flag for more accurate write speed measurements
  • Flexible testing modes - Run write-only or read-only tests
  • Automatic cleanup - Remove test files after completion

Usage

# Basic usage (writes 100M with 1M buffer, then reads it back)
cargo run --release -- testfile 1M 100M

# With disk sync and cleanup
cargo run --release -- testfile 1M 100M --sync --cleanup

# Write-only test
cargo run --release -- testfile 1M 100M --write-only

# Read-only test (file must exist)
cargo run --release -- testfile 1M --read-only

Arguments

  • file_path - Path to the test file (required)
  • buffer_size - Buffer size for I/O operations (default: 1M)
  • total_size - Total size to write/read (default: 100M)
  • --sync - Sync data to disk after write (more accurate measurement)
  • --write-only - Only perform write test
  • --read-only - Only perform read test
  • --cleanup - Remove test file after completion

Size Format

Sizes can be specified with optional suffixes:

  • K or k - Kilobytes (1024 bytes)
  • M or m - Megabytes (1024² bytes)
  • G or g - Gigabytes (1024³ bytes)

Examples: 512K, 1M, 2G, 100 (bytes)

Building

cargo build --release

The binary will be at target/release/oxidised-dd.

Example Output

Write: 104857600 bytes in 0.15s (666.67 MB/s)
Read: 104857600 bytes in 0.12s (833.33 MB/s)

License

This project is open source and available under the MIT License.

About

A Rust tool for disk I/O performance testing, similar to dd"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages