ionelmc / pytest-benchmark

py.test fixture for benchmarking code
BSD 2-Clause "Simplified" License
1.24k stars 119 forks source link

asv (airspeed-velocity) integration #208

Open FFY00 opened 3 years ago

FFY00 commented 3 years ago

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:

astrojuanlu commented 2 years ago

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

FFY00 commented 2 years ago

I did not :confused: