Comments on: Measuring Disk IO Performance on MacOS https://www.nivas.hr/blog/2017/09/19/measuring-disk-io-performance-macos/ This is a blog from the Nivas.hr crew to the galaxy of unknown. Wed, 29 Sep 2021 15:55:51 +0000 hourly 1 https://wordpress.org/?v=5.8.2 By: seven https://www.nivas.hr/blog/2017/09/19/measuring-disk-io-performance-macos/comment-page-1/#comment-1196080 Wed, 29 Sep 2021 15:55:51 +0000 https://www.nivas.hr/blog/?p=2573#comment-1196080 @roland there is Blackmagic Disk Speed Test on AppStore which is ‘de-facto’ standard hdd bench on macos. Why dunno. How it works? Dunno.

]]>
By: roland https://www.nivas.hr/blog/2017/09/19/measuring-disk-io-performance-macos/comment-page-1/#comment-1115581 Wed, 14 Nov 2018 12:34:22 +0000 https://www.nivas.hr/blog/?p=2573#comment-1115581 nice – but how can you actually view the actual read/write iops rate for a device ?

i searched long for this, but for my curiousity – there is no standard method in OSX.

does somebody know some?

here is the one i built:

#!/usr/local/bin/python3

import psutil
import time
import datetime
dicts = psutil.disk_io_counters(perdisk=True)
write = dicts[‘disk0’][1]
read = dicts[‘disk0’][0]

while (1):
time.sleep(1)
ts = datetime.datetime.fromtimestamp(time.time()).strftime(‘%d.%m.%Y,%H:%M:%S’)
dicts = psutil.disk_io_counters(perdisk=True)
writenew = dicts[‘disk0’][1]
readnew = dicts[‘disk0’][0]
writediff = writenew – write
readdiff = readnew – read
write = writenew
read = readnew
print(ts,readdiff,writediff)

]]>