测试TF card 的读写速度
来源:互联网 发布:婚纱摄影软件 编辑:程序博客网 时间:2024/05/17 02:25
TF card的读写速度
# _*_ coding: utf_8 _*_import timeimport datetimedef test_card_r(): fin = open('test1.txt') for line in fin: word = line.strip() return worddef test_card_w(num): test1 = open('test1.txt', 'w') while True: line = "Holle world" test1.write(line) length = test1.tell() if length >= (1024 ** 2 * num): print length break return test1def datetime_now(): now = int(time.time()) print('now:' , now) return nowdef card_time(num): w_start_time = datetime_now() test_card_w(num) r_start_time = datetime_now() test_card_r() time = datetime_now() w_time = r_start_time - w_start_time print('w_time:', w_time) wv = num / float(w_time) print('wv:' , wv) r_time = time - r_start_time print r_time f_time = time - w_start_time print f_time return f_timecard_time(50)
0 0
- 测试TF card 的读写速度
- 测试硬盘读写的速度
- card 驱动(二)读写速度
- 读写文件速度测试的注意事项
- 如何测试Linux磁盘的读写速度
- 测试linux磁盘的读写速度
- Android 测试存储设备的读写速度
- 读写文件速度测试
- 读写文件速度测试
- 读写文件速度测试
- 读写文件速度测试
- linux 读写速度测试
- 测试硬盘读写速度
- 硬盘读写速度测试
- 测试磁盘读写速度
- SSD读写速度测试
- 测试USB 读写速度
- 安全智能TF卡读写稳定性测试
- Ping命令返回错误信息说明
- 数据结构实验之二叉树七:叶子问题
- troubleshooting基础技巧,第二讲,show出真自我
- 贪吃蛇简化
- 三种方式向eigrp区域注入默认路由
- 测试TF card 的读写速度
- 【致青春】我的大学没有遗憾
- 老天很公平
- SecureCRT装逼指南之使用小技巧
- SecureCRT登录本地cygwin。
- bash 常用命令
- CentOS清除root密码
- linux,你会关机吗
- 偶然间遇见曾经的自己