yinguohai
        python中使用的性能测试模块是memory_profiler , 我们使用它里面的profile这个装饰器即可测试出我们的代码的内存使用情况了。
 
如果没有安装 memory_profiler 则使用pip 安装一下即可,我用的是python3.7的版本安装命令:
 
 
pip3 install memory_profiler

 

用例测试
 
test.py 文件:
 
 

 

分类:

技术点:

相关文章:

  • 2021-08-10
  • 2022-12-23
  • 2021-04-26
  • 2021-06-14
  • 2021-12-16
  • 2021-10-11
  • 2022-02-28
猜你喜欢
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2021-12-02
  • 2021-08-15
相关资源
相似解决方案