Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tests_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
tests_api
Commits
215faf4f
Commit
215faf4f
authored
4 months ago
by
Krzysztof Mochocki
Browse files
Options
Downloads
Patches
Plain Diff
Extend logging
parent
a159c66f
No related branches found
No related tags found
No related merge requests found
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/Dockerfile.jmeter
+1
-1
1 addition, 1 deletion
benchmarks/Dockerfile.jmeter
benchmarks/benchmark.py
+1
-0
1 addition, 0 deletions
benchmarks/benchmark.py
with
2 additions
and
1 deletion
benchmarks/Dockerfile.jmeter
+
1
−
1
View file @
215faf4f
...
...
@@ -79,7 +79,7 @@ ENV ROOT_DIR="${WDIR}"
ENV SERVE_PORT=""
# additional arguments that will be passed to benchmarking script
ENV ADDITIONAL_ARGS="--skip-version-check"
ENV ADDITIONAL_ARGS="--skip-version-check
-i
"
# path to directory, where jmeter and python benchmark script will put all it's output
ENV JMETER_WORKDIR=${ROOT_DIR}/wdir
...
...
This diff is collapsed.
Click to expand it.
benchmarks/benchmark.py
+
1
−
0
View file @
215faf4f
...
...
@@ -339,6 +339,7 @@ with JMETER_REPORT_OUT_FILE.open('rt', encoding='utf-8') as in_file:
if
error_counter
>
0
:
log
.
error
(
f
'
Amount of invalid requests/total amount of requests:
{
error_counter
}
/
{
count
+
1
}
'
)
log
.
info
(
f
"
total amount of calls:
{
count
}
"
)
# generate pretty table
table
=
PrettyTable
(
field_names
=
[
'
Endpoint
'
,
'
Max [ms]
'
,
'
Min [ms]
'
,
'
Average [ms]
'
,
'
Median [ms]
'
])
value_extr
=
lambda
x
:
x
.
value
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment