Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 592 Bytes

benchmark-disk-write-performance-on-macos.md

File metadata and controls

33 lines (22 loc) · 592 Bytes

Benchmark Disk Write Performance On MacOS

Category: Mac

You can benchmark disk write performance on macOS using the dd command.

Create a temp directory:

mkdir benchmark && cd benchmark/

Write to a temporary file called test.file:

dd if=/dev/zero of=test.file bs=1M count=5000

Output:

5000+0 records in
5000+0 records out
5242880000 bytes transferred in 3.346387 secs (1566728534 bytes/sec)

Converting the above result in bytes/sec results in throughput of 1566.7 megabytes/sec.

Delete the temporary file:

rm test.file