pytest austin:使用Austin进行Python性能测试 源码

上传:gifted_99296 浏览: 16 推荐: 0 文件:ZIP 大小:121.55KB 上传时间:2021-02-21 08:13:23 版权申诉
使用Austin进行Python性能测试 •••• 概要 该pytest奥斯汀插件带来了Python的性能测试到您的权利CI管道。 它使用无需任何检测即可描述您的测试运行。 您要做的只是简单地标记要在其上执行检查以防止性能下降的测试。 import pytest @ pytest . mark . total_time ( td ( milliseconds = 50 ), function = "fibonacci" ) @ pytest . mark . total_time ( "99%" , line = 8 ) @ pytest . mark . total_time ( "50
上传资源
用户评论