Python实现测试磁盘性能的方法

时间:2020-12-25 08:39:36
【文件属性】:
文件名称:Python实现测试磁盘性能的方法
文件大小:35KB
文件格式:PDF
更新时间:2020-12-25 08:39:36
python 方法 测试 本文实例讲述了Python实现测试磁盘性能的方法。分享给大家供大家参考。具体如下: 该代码做了如下工作: create 300000 files (512B to 1536B) with data from /dev/urandom rewrite 30000 random files and change the size read 30000 sequential files read 30000 random files delete all files sync and drop cache after every step bench.py代码如下: 复制代码 代码如下:#!/usr

网友评论