Skip to content

Commit

Permalink
update benchmark names (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago authored Apr 9, 2024
1 parent 56e34ab commit 11e9c0f
Showing 1 changed file with 16 additions and 1 deletion.
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

0 comments on commit 11e9c0f

Please sign in to comment.