pytest-benchmark icon indicating copy to clipboard operation
pytest-benchmark copied to clipboard

asv (airspeed-velocity) integration

Open FFY00 opened this issue 3 years ago • 2 comments

asv is a project that can run benchmarks and create a nice website with the results and comparisons to previous versions. I would be really nice if it was possible to use pytest-benchmark as the data provider, as it has a nicer API to write tests and is integrated with pytest.

One option would be to add support directly to pytest-benchmark, but this adds more weight for the maintainers and would maybe be better as a separate plugin.

#200 would allow us to more easily implement this, but for the time being, I was thinking about hijacking pytest_benchmark_generate_json to additionally generate the asv output. What do you think?

An asv plugin would need the following:

  • A way to fetch the benchmark data, so that it can generate the asv output
  • A way to customize the commit information (pytest_benchmark_generate_commit_info), because we may be running benchmarks for an external project and want to track its version/commit

FFY00 avatar Jul 11 '21 16:07 FFY00

@FFY00 Did you end up hacking something? There's a symmetric proposal at https://github.com/airspeed-velocity/asv/issues/567

astrojuanlu avatar Jan 25 '22 14:01 astrojuanlu

I did not :confused:

FFY00 avatar Jan 25 '22 14:01 FFY00