Skip to content

Commit

Permalink
Just go back to auto
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguidry committed Jul 29, 2024
1 parent f438fec commit cda869f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions benches/bench_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,19 @@ def reset_imports():
@pytest.mark.benchmark(group="imports")
def bench_import_prefect(benchmark: BenchmarkFixture):
def import_prefect():
reset_imports()

import prefect # noqa

benchmark.pedantic(import_prefect, setup=reset_imports, rounds=15)
benchmark(import_prefect)


@pytest.mark.timeout(180)
@pytest.mark.benchmark(group="imports")
def bench_import_prefect_flow(benchmark: BenchmarkFixture):
def import_prefect_flow():
reset_imports()

from prefect import flow # noqa

benchmark.pedantic(import_prefect_flow, setup=reset_imports, rounds=15)
benchmark(import_prefect_flow)

0 comments on commit cda869f

Please sign in to comment.