Skip to content

update benchmark names #652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion stac_fastapi/api/tests/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,16 @@ def f(p):
)

benchmark.group = "Items With Model validation" if validate else "Items"
benchmark.name = "Items With Model validation" if validate else "Items"
benchmark.name = (
f"Items With Model validation ({limit})"
if validate
else f"Items Limit: ({limit})"
)
benchmark.fullname = (
f"Items With Model validation ({limit})"
if validate
else f"Items Limit: ({limit})"
)

response = benchmark(f, params)
assert response.status_code == 200
Expand All @@ -151,6 +160,9 @@ def f():

benchmark.group = "Collection With Model validation" if validate else "Collection"
benchmark.name = "Collection With Model validation" if validate else "Collection"
benchmark.fullname = (
"Collection With Model validation" if validate else "Collection"
)

response = benchmark(f)
assert response.status_code == 200
Expand All @@ -170,6 +182,9 @@ def f():

benchmark.group = "Collections With Model validation" if validate else "Collections"
benchmark.name = "Collections With Model validation" if validate else "Collections"
benchmark.fullname = (
"Collections With Model validation" if validate else "Collections"
)

response = benchmark(f)
assert response.status_code == 200