Skip to content

How-ToSSD

How to Benchmark an SSD on Windows With Microsoft's Free DiskSpd Tool

DiskSpd is Microsoft's free, official storage benchmark for Windows. Using Microsoft's own docs, we show how to download it, run safe sequential and random read tests on an SSD, pick the right switches and understand the results.

By , Systems & Technical Editor

5 min read

How to Benchmark an SSD on Windows With Microsoft's Free DiskSpd Tool

Most people test a new SSD with a point-and-click app such as CrystalDiskMark. If you want more control over exactly what is being tested, Microsoft makes its own free storage benchmark: DiskSpd. It's a command-line storage load generator and performance test tool from the Windows, Windows Server and Cloud Server Infrastructure engineering teams, it's MIT-licensed, and it lets you choose the block size, queue depth, thread count, read/write mix and test length yourself. This guide walks through downloading it, running safe read tests against a test file, and reading the results, based on Microsoft's official DiskSpd GitHub repository, wiki and Microsoft Learn documentation, checked on 1 December 2026.

Before you start

  • Know which drive you're testing. Pick a drive letter with some free space, for example your new NVMe SSD as D:.

  • Stick to read tests and test files. DiskSpd's documentation warns that a write test "will destroy existing data without a warning". Testing a file on a formatted drive, rather than a raw physical disk, is the safer option for home users. Microsoft's wiki says file targets exercise the entire filesystem and storage stack, while device targets focus on device behaviour, and that for a device write test it's best practice to remove the filesystem and partitioning first. Don't point DiskSpd at a physical disk number unless you know exactly what you're doing.

  • Close other heavy apps such as game launchers, backups and downloads, so they don't skew the result.

Step 1: Download DiskSpd

Microsoft's GitHub README says the latest version can always be downloaded from github.com/Microsoft/diskspd/releases/latest/download/DiskSpd.zip, also available via the short link aka.ms/getdiskspd. At the time of writing, the latest release on GitHub was DiskSpd 2.3. Its release notes say the binary release contains amd64 and arm64 builds, and the minimum supported operating system is Windows 10 version 1803.

  1. Download DiskSpd.zip from the official GitHub releases page.

  2. Extract it to a folder such as C:\DISKSPD.

  3. Inside, open the folder that matches your PC: amd64 for normal Intel and AMD PCs, or arm64 for Windows on Arm laptops.

Microsoft Learn's quick start does the same job in PowerShell, using Invoke-RestMethod to download the zip and Expand-Archive to unpack it, then adding the folder that matches your processor architecture to your PATH.

Step 2: Open an admin terminal

Microsoft's quick start tells you to open PowerShell as an admin. Right-click Start, choose Terminal (Admin), then change to the DiskSpd folder, for example:

cd C:\DISKSPD\amd64

Step 3: Learn the switches that matter

DiskSpd has dozens of options, and Microsoft's docs note that parameters are case sensitive. These are the ones you need for a basic SSD test, as described in the official wiki and Microsoft Learn:

Switch

What it does

-c

Creates a test file of the size you give, such as -c8G

-b

Block (I/O) size; the default is 64K

-r

Random I/O; without it, threads read sequentially

-o

Outstanding I/O requests per target per thread, also known as queue depth; the default is 2

-t

Threads per target

-w

Percentage of writes; -w0 or leaving it out means 100% reads

-d

Test duration in seconds; the default is 10 seconds

-W

Warm-up time before measurement starts; the default is 5 seconds

-Sh

Disables software caching and hardware write caching (equivalent to -Suw)

-L

Measures latency statistics

-D

Captures IOPS statistics, such as standard deviation, in intervals

Sizes such as 64K, 1M or 8G use binary units. DiskSpd's wiki explains that it uses iB notation, so 1GiB is 1,073,741,824 bytes, and that you specify KiB, MiB, GiB or TiB by adding K, M, G or T to a number.

Step 4: Run a sequential read test

This test creates an 8GB test file on drive D: and reads it sequentially in large 1MB blocks for 30 seconds, with caching disabled so you see the drive rather than system memory:

diskspd -c8G -b1M -o8 -t1 -W5 -d30 -Sh -L D:\diskspd-test.dat > seq-read.txt

The first run may take longer because DiskSpd has to create the file. The > seq-read.txt part saves the results to a text file in the current folder, as in Microsoft's own example.

Step 5: Run a random 4K read test

Small random reads test an SSD in a very different way from large sequential transfers. Microsoft Learn's example uses 4K blocks, random I/O aligned to 4K, two threads and a queue depth of 32. You can run the same idea against your test file:

diskspd -c8G -b4K -r4K -o32 -t2 -w0 -W5 -d60 -Sh -D -L D:\diskspd-test.dat > rand-read.txt

Microsoft notes that the default duration is 10 seconds, but it recommends using at least 60 seconds for any serious workload. For a quick light-load check, rerun it with -o1 -t1 to see how the drive behaves at a queue depth of one.

Step 6: Read the results

Open the text file in Notepad. Microsoft Learn describes four main sections in DiskSpd's text output:

  • Input settings: the command you ran and its parameters, useful when comparing runs later.

  • CPU utilization details: test time, thread count and average use of each CPU core. If the CPU is maxed out, it may be limiting the result rather than the SSD.

  • Total I/O: overall performance for reads and writes, followed by separate read and write sections. This is where you'll find throughput in MiB/s, I/O per second and average latency. The standard deviation of IOPS comes from -D, and the standard deviation of latency from -L.

  • Latency percentiles: how many operations finished within a given latency, from minimum to maximum. Microsoft explains that "3-nines" is equivalent to the 99th percentile, and warns that at the highest percentiles the value may be based on only a single I/O operation, so don't read too much into the very last rows.

DiskSpd reports throughput in MiB/s, while SSD makers usually quote MB/s, so expect the DiskSpd figure to look a little lower for the same speed.

Step 7: Clean up

When you've finished, delete the test file (D:\diskspd-test.dat in these examples) to get the space back.

Tips for fair comparisons

The bottom line

DiskSpd is Microsoft's free, official storage benchmark, and it gives you full control over block size, queue depth, threads, read/write mix and duration. Stick to read tests against a test file, disable caching with -Sh, add -L for latency, run tests for at least 60 seconds as Microsoft recommends, and change one setting at a time. For a quick result to compare with reviews, a graphical tool is simpler, but DiskSpd is the better choice when you want to know exactly what you are measuring.

Sources

  1. 01Microsoft, DiskSpd GitHub repository README
  2. 02Microsoft, DiskSpd releases on GitHub (DISKSPD 2.3 release notes)
  3. 03Microsoft, DiskSpd wiki: Command line and parameters
  4. 04Microsoft Learn, Use DISKSPD to test workload storage performance

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

ChatGPT vs Claude: Which AI Desktop App Is Better on Windows?

Versus

ChatGPT vs Claude: Which AI Desktop App Is Better on Windows?

ChatGPT and Claude both have full Windows desktop apps that go beyond chat. We compare requirements, Arm support, shortcuts, ChatGPT's Work and Codex against Claude Code, Cowork and desktop extensions, and which suits your PC.

Callum Reid3 min

How to Install and Use the ChatGPT App on Windows

How-To

How to Install and Use the ChatGPT App on Windows

OpenAI now has a new ChatGPT desktop app with Chat, Work and Codex, alongside ChatGPT Classic. Here's how to install ChatGPT on a Windows PC, tell the two apps apart, use the Alt+Space companion window, change its shortcut and reset the app.

Marcus Thorne3 min