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