ionelmc / pytest-benchmark

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

Document how to create benchmark groups #249

Open stdedos opened 1 year ago

stdedos commented 1 year ago

I have the following benchmarked tests:

test_func_typeddict
test_func_plain
test_func_dataclass
test_func_typeddict_random
test_func_plain_random
test_func_dataclass_random

Could you explain/document how can I group them by _random?

I'd like that they'd live at the same test.py file; but I'm willing to split them if necessary.

Relates to https://github.com/ionelmc/pytest-benchmark/issues/198