Skip to content

Commit 11e9c0f

Browse files
update benchmark names (#652)
1 parent 56e34ab commit 11e9c0f

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

stac_fastapi/api/tests/benchmarks.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,16 @@ def f(p):
131131
)
132132

133133
benchmark.group = "Items With Model validation" if validate else "Items"
134-
benchmark.name = "Items With Model validation" if validate else "Items"
134+
benchmark.name = (
135+
f"Items With Model validation ({limit})"
136+
if validate
137+
else f"Items Limit: ({limit})"
138+
)
139+
benchmark.fullname = (
140+
f"Items With Model validation ({limit})"
141+
if validate
142+
else f"Items Limit: ({limit})"
143+
)
135144

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

152161
benchmark.group = "Collection With Model validation" if validate else "Collection"
153162
benchmark.name = "Collection With Model validation" if validate else "Collection"
163+
benchmark.fullname = (
164+
"Collection With Model validation" if validate else "Collection"
165+
)
154166

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

171183
benchmark.group = "Collections With Model validation" if validate else "Collections"
172184
benchmark.name = "Collections With Model validation" if validate else "Collections"
185+
benchmark.fullname = (
186+
"Collections With Model validation" if validate else "Collections"
187+
)
173188

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

0 commit comments

Comments
 (0)