Python 如何将pytest Benchmark输出保存到excel工作表

Python 如何将pytest Benchmark输出保存到excel工作表,python,python-3.x,python-requests,pytest,pytest-benchmark,Python,Python 3.x,Python Requests,Pytest,Pytest Benchmark,我想将pytest基准测试结果存储到excel文件中,有人知道怎么做吗 python import pytest import pytest-benchmark def fun(): print("Defines a function") test_funct(): result = benchmark.pedantic(fun, args=(,), iterations=1, rounds=10) assert result == 0 I run above tes

我想将pytest基准测试结果存储到excel文件中,有人知道怎么做吗

python
import pytest
import pytest-benchmark

def fun():
   print("Defines a function")

test_funct():
    result = benchmark.pedantic(fun, args=(,), iterations=1, rounds=10)
    assert result == 0

I run above test using command 
python3 -m pytest ./filename.py




如果我使用--benchmark autosave,它将结果存储为json格式,我想将结果存储为excel或csv格式,因为
pytest benchmark
不提供此功能,您必须在以后将json转换为csv或excel,请参见示例。谢谢您,MrBean BremenAs
pytest benchmark
没有提供此功能,之后,您必须将json转换为csv或Excel-例如,请参阅。谢谢Breme先生