locust 2.37.2.dev3__py3-none-any.whl → 2.37.2.dev4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locust/_version.py +2 -2
- locust/web.py +9 -10
- {locust-2.37.2.dev3.dist-info → locust-2.37.2.dev4.dist-info}/METADATA +1 -1
- {locust-2.37.2.dev3.dist-info → locust-2.37.2.dev4.dist-info}/RECORD +7 -7
- {locust-2.37.2.dev3.dist-info → locust-2.37.2.dev4.dist-info}/WHEEL +0 -0
- {locust-2.37.2.dev3.dist-info → locust-2.37.2.dev4.dist-info}/entry_points.txt +0 -0
- {locust-2.37.2.dev3.dist-info → locust-2.37.2.dev4.dist-info}/licenses/LICENSE +0 -0
locust/_version.py
CHANGED
@@ -17,5 +17,5 @@ __version__: str
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
18
18
|
version_tuple: VERSION_TUPLE
|
19
19
|
|
20
|
-
__version__ = version = '2.37.2.
|
21
|
-
__version_tuple__ = version_tuple = (2, 37, 2, '
|
20
|
+
__version__ = version = '2.37.2.dev4'
|
21
|
+
__version_tuple__ = version_tuple = (2, 37, 2, 'dev4')
|
locust/web.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
3
|
import csv
|
4
|
+
import itertools
|
4
5
|
import json
|
5
6
|
import logging
|
6
7
|
import mimetypes
|
@@ -8,7 +9,6 @@ import os.path
|
|
8
9
|
from functools import wraps
|
9
10
|
from html import escape
|
10
11
|
from io import StringIO
|
11
|
-
from itertools import chain
|
12
12
|
from json import dumps
|
13
13
|
from typing import TYPE_CHECKING, Any, TypedDict
|
14
14
|
|
@@ -456,18 +456,17 @@ class WebUI:
|
|
456
456
|
|
457
457
|
return jsonify(report)
|
458
458
|
|
459
|
-
for s in chain(stats.sort_stats(environment.runner.stats.entries), [environment.runner.stats.total]):
|
460
|
-
_stats.append(s.to_dict())
|
461
|
-
|
462
|
-
errors = [e.serialize() for e in environment.runner.errors.values()]
|
463
|
-
|
464
459
|
# Truncate the total number of stats and errors displayed since a large number of rows will cause the app
|
465
460
|
# to render extremely slowly. Aggregate stats should be preserved.
|
466
|
-
|
467
|
-
|
468
|
-
|
461
|
+
_stats.extend(
|
462
|
+
stat.to_dict() for stat in itertools.islice(stats.sort_stats(environment.runner.stats.entries), 500)
|
463
|
+
)
|
464
|
+
_stats.append(environment.runner.stats.total.to_dict())
|
465
|
+
|
466
|
+
errors = [e.serialize() for e in itertools.islice(environment.runner.errors.values(), 500)]
|
467
|
+
|
468
|
+
report = {"stats": _stats, "errors": errors}
|
469
469
|
|
470
|
-
report = {"stats": truncated_stats, "errors": errors[:500]}
|
471
470
|
total_stats = _stats[-1]
|
472
471
|
|
473
472
|
if _stats:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
locust/__init__.py,sha256=aWeuBPUxONjwNm1xp4v8L4BO14SuYLjscIiwJVX1Ui4,1746
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=t3kldQhpqok-WZOOav6_MnbRSvL4fZwOJgdveVr5nrE,526
|
4
4
|
locust/argument_parser.py,sha256=JDZftZ1sGknDXzYy-UrGndX7mGJUMhEjvruRjQjbNM4,33190
|
5
5
|
locust/clients.py,sha256=o-277lWQdpmPnoRTdf3IQVNPQT8LMFDtPtuxbLHQIIs,19286
|
6
6
|
locust/debug.py,sha256=7CCm8bIg44uGH2wqBlo1rXBzV2VzwPicLxLewz8r5CQ,5099
|
@@ -16,7 +16,7 @@ locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
|
|
16
16
|
locust/runners.py,sha256=niYmGsfOpxMfVmTXGod4MYTefpaZ2wirFlhqxRw5mq4,70617
|
17
17
|
locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
|
18
18
|
locust/stats.py,sha256=D2iJ7Ei1Z_e3cF5n8TdSstpewZytnSmstTjxr5c9uNw,47264
|
19
|
-
locust/web.py,sha256=
|
19
|
+
locust/web.py,sha256=mfrG6udKZGuArgqtuAfXD_ITlUXnaWiAVeiDfi5F9-o,30412
|
20
20
|
locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
21
|
locust/contrib/fasthttp.py,sha256=BCuKG0qpBIhXdejjPSbAMSaSd6piJtuLdx96_LWbIgI,29349
|
22
22
|
locust/contrib/mongodb.py,sha256=1seUYgJOaNKwybYOP9PUEVhgl8hGy-G33f8lFj3R8W8,1246
|
@@ -51,8 +51,8 @@ locust/webui/dist/assets/graphs-light.png,sha256=7L6pOehXqCojQclzeP91l-LskFQAw_n
|
|
51
51
|
locust/webui/dist/assets/index-OsbNSvrF.js,sha256=7HLGlI9Pmknt3Nqf2hfZG7drC0jyMPi9Z5-x21F_4e8,1721633
|
52
52
|
locust/webui/dist/assets/testruns-dark.png,sha256=np6MvpgJ2gkKQ66SOmukLtjsMtHqTSr5dNfza-2XtCo,267621
|
53
53
|
locust/webui/dist/assets/testruns-light.png,sha256=iLAxBZh3kRsfGkcB1-1KSAbFgGji43IqiUrYuJlUoPk,276839
|
54
|
-
locust-2.37.2.
|
55
|
-
locust-2.37.2.
|
56
|
-
locust-2.37.2.
|
57
|
-
locust-2.37.2.
|
58
|
-
locust-2.37.2.
|
54
|
+
locust-2.37.2.dev4.dist-info/METADATA,sha256=U1LKaSaxNb5miJFHD-Jd0nfTgzBzRPzCGZAWCtZa92o,9403
|
55
|
+
locust-2.37.2.dev4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
56
|
+
locust-2.37.2.dev4.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
|
57
|
+
locust-2.37.2.dev4.dist-info/licenses/LICENSE,sha256=5hnz-Vpj0Z3kSCQl0LzV2hT1TLc4LHcbpBp3Cy-EuyM,1110
|
58
|
+
locust-2.37.2.dev4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|