(aio_benchmark, num_models: int, authors_in_db: list[Author])
| 83 | |
| 84 | @pytest.mark.parametrize("num_models", [250, 500, 1000]) |
| 85 | async def test_first(aio_benchmark, num_models: int, authors_in_db: list[Author]): |
| 86 | @aio_benchmark |
| 87 | async def first(): |
| 88 | return await Author.objects.first() |
| 89 | |
| 90 | author = first() |
| 91 | assert author == authors_in_db[0] |
| 92 | |
| 93 | |
| 94 | @pytest.mark.parametrize("num_models", [250, 500, 1000]) |