csv文件到MySQL的时间测量工具

2024-04-25 22:24:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经编写了一个python脚本,在MySQL数据库中导入CSV文件。我需要检查MySQL的读/写速度,因为我需要优化速度和时间。我搜索并找到这个命令

time ./royshah.py

结果是这样的

real    0m2.579s
user    0m0.448s
sys     0m0.192s

我的文件大小是86KB,它由1200行和9列组成。我的问题是

is there any other command or useful profiling tool for python and MySQL
to measure more precisely speed  time other than
this command "time ./file-name" ?

我尽力找了一个,但找不到。 谢谢你的帮助。你知道吗


Tags: 文件csvpy命令脚本数据库time时间

热门问题