locust 2.28.1.dev32__py3-none-any.whl → 2.28.1.dev38__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/html.py +0 -1
- locust/stats.py +3 -3
- locust/web.py +1 -1
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +1 -8
- {locust-2.28.1.dev32.dist-info → locust-2.28.1.dev38.dist-info}/METADATA +1 -1
- {locust-2.28.1.dev32.dist-info → locust-2.28.1.dev38.dist-info}/RECORD +12 -13
- locust/webui/dist/assets/index-43911052.js +0 -250
- {locust-2.28.1.dev32.dist-info → locust-2.28.1.dev38.dist-info}/LICENSE +0 -0
- {locust-2.28.1.dev32.dist-info → locust-2.28.1.dev38.dist-info}/WHEEL +0 -0
- {locust-2.28.1.dev32.dist-info → locust-2.28.1.dev38.dist-info}/entry_points.txt +0 -0
- {locust-2.28.1.dev32.dist-info → locust-2.28.1.dev38.dist-info}/top_level.txt +0 -0
locust/_version.py
CHANGED
@@ -12,5 +12,5 @@ __version__: str
|
|
12
12
|
__version_tuple__: VERSION_TUPLE
|
13
13
|
version_tuple: VERSION_TUPLE
|
14
14
|
|
15
|
-
__version__ = version = '2.28.1.
|
16
|
-
__version_tuple__ = version_tuple = (2, 28, 1, '
|
15
|
+
__version__ = version = '2.28.1.dev38'
|
16
|
+
__version_tuple__ = version_tuple = (2, 28, 1, 'dev38')
|
locust/html.py
CHANGED
locust/stats.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
3
|
import csv
|
4
|
-
import datetime
|
5
4
|
import hashlib
|
6
5
|
import json
|
7
6
|
import logging
|
@@ -34,6 +33,7 @@ import gevent
|
|
34
33
|
|
35
34
|
from .event import Events
|
36
35
|
from .exception import CatchResponseError
|
36
|
+
from .util.date import format_utc_timestamp
|
37
37
|
from .util.rounding import proper_round
|
38
38
|
|
39
39
|
if TYPE_CHECKING:
|
@@ -922,10 +922,10 @@ def update_stats_history(runner: Runner) -> None:
|
|
922
922
|
|
923
923
|
r = {
|
924
924
|
**current_response_time_percentiles,
|
925
|
-
"time":
|
925
|
+
"time": format_utc_timestamp(time.time()),
|
926
926
|
"current_rps": stats.total.current_rps or 0,
|
927
927
|
"current_fail_per_sec": stats.total.current_fail_per_sec or 0,
|
928
|
-
"total_avg_response_time": stats.total.avg_response_time,
|
928
|
+
"total_avg_response_time": proper_round(stats.total.avg_response_time, digits=2),
|
929
929
|
"user_count": runner.user_count or 0,
|
930
930
|
}
|
931
931
|
stats.history.append(r)
|
locust/web.py
CHANGED
@@ -627,7 +627,7 @@ class WebUI:
|
|
627
627
|
"user_count": self.environment.runner.user_count,
|
628
628
|
"version": version,
|
629
629
|
"host": host if host else "",
|
630
|
-
"history": stats.history if stats.num_requests > 0 else
|
630
|
+
"history": stats.history if stats.num_requests > 0 else [],
|
631
631
|
"override_host_warning": override_host_warning,
|
632
632
|
"num_users": options and options.num_users,
|
633
633
|
"spawn_rate": options and options.spawn_rate,
|
locust/webui/dist/auth.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<meta name="theme-color" content="#000000" />
|
8
8
|
|
9
9
|
<title>Locust</title>
|
10
|
-
<script type="module" crossorigin src="./assets/index-
|
10
|
+
<script type="module" crossorigin src="./assets/index-a6ea17d5.js"></script>
|
11
11
|
</head>
|
12
12
|
<body>
|
13
13
|
<div id="root"></div>
|
locust/webui/dist/index.html
CHANGED
@@ -7,20 +7,13 @@
|
|
7
7
|
<meta name="theme-color" content="#000000" />
|
8
8
|
|
9
9
|
<title>Locust</title>
|
10
|
-
<script type="module" crossorigin src="./assets/index-
|
10
|
+
<script type="module" crossorigin src="./assets/index-a6ea17d5.js"></script>
|
11
11
|
</head>
|
12
12
|
<body>
|
13
13
|
<div id="root"></div>
|
14
14
|
|
15
15
|
<script>
|
16
16
|
window.templateArgs = {{ template_args|tojson }}
|
17
|
-
// The server sets timestamps in UTC
|
18
|
-
// We need to convert these timestamps to locale time
|
19
|
-
window.templateArgs.history =
|
20
|
-
window.templateArgs.history.length ? window.templateArgs.history.map(({ time: serverTime, ...history }) => ({
|
21
|
-
...history,
|
22
|
-
time: new Date(new Date().setUTCHours(...(serverTime.split(":")))).toLocaleTimeString()
|
23
|
-
})) : []
|
24
17
|
</script>
|
25
18
|
|
26
19
|
</body>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
locust/__init__.py,sha256=g6oA-Ba_hs3gLWVf5MKJ1mvfltI8MFnDWG8qslqm8yg,1402
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256
|
3
|
+
locust/_version.py,sha256=vNUi7lEojzHseVvYNKU1m8jLJAHUwT-H7Dnj7QbPOGc,428
|
4
4
|
locust/argument_parser.py,sha256=VVhInNMKaisjiywQ7H43ooONpHe1Ve1JmftHgnQnRfY,28715
|
5
5
|
locust/clients.py,sha256=YKuAyMAbxs8_-w7XJw0hc67KFBNNLxibsw6FwiS01Q8,14781
|
6
6
|
locust/debug.py,sha256=We6Z9W0btkKSc7PxWmrZx-xMynvOOsKhG6jmDgQin0g,5134
|
@@ -8,15 +8,15 @@ locust/dispatch.py,sha256=vYh0QEDFgJ3hY0HgSk-EiNO7IP9ffzXF_Et8wB9JvsI,16995
|
|
8
8
|
locust/env.py,sha256=SLtUQCYaiv_oq_Nz1xaB0OD8RkTdESt2b71vz_qohpo,12452
|
9
9
|
locust/event.py,sha256=m-egSPfOEd1Q6HEXx5lB0LlXOuEdzeS7B1XSFIDgRy0,7836
|
10
10
|
locust/exception.py,sha256=jGgJ32ubuf4pWdlaVOkbh2Y0LlG0_DHi-lv3ib8ppOE,1791
|
11
|
-
locust/html.py,sha256=
|
11
|
+
locust/html.py,sha256=_n3aB3fxiYzSeE_7RqHF3iiEPjPnbQ3e2Pw9P8AVtPU,3920
|
12
12
|
locust/input_events.py,sha256=ZIyePyAMuA_YFYWg18g_pE4kwuQV3RbEB250MzXRwjY,3314
|
13
13
|
locust/log.py,sha256=cqLt7nnxnQuM4vWFB5EpJpNUTxGBVEkUJuaJPI1S7_Y,3186
|
14
14
|
locust/main.py,sha256=NGjL5QqakU5aeyUzwu2Fh00xVZfC3eoBE3DtfOmRtcM,27854
|
15
15
|
locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
|
16
16
|
locust/runners.py,sha256=Xc_cyRig7nL5Rtuk4hfH029JoQZP4U_yXGGK7t-h-SE,68406
|
17
17
|
locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
|
18
|
-
locust/stats.py,sha256=
|
19
|
-
locust/web.py,sha256=
|
18
|
+
locust/stats.py,sha256=nP0zgoLls6OtDRaDwpvy8d_MAKQZn0Jdcze4YevTQV8,45876
|
19
|
+
locust/web.py,sha256=r8wim_DUC-A7fAaBubkDu5lo4ONCQNOtQMSpHT5lPks,27473
|
20
20
|
locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
21
|
locust/contrib/fasthttp.py,sha256=vByPepw35DF84qZ2xK89yHgjOA_8btV0wig_rSR6p4g,26757
|
22
22
|
locust/rpc/__init__.py,sha256=nVGoHWFQxZjnhCDWjbgXIbmFbN9sizAjkhvSs9_642c,58
|
@@ -65,15 +65,14 @@ locust/util/exception_handler.py,sha256=jTMyBq2a0O07fRjmqGkheyaPj58tUgnbbcjoesKG
|
|
65
65
|
locust/util/load_locustfile.py,sha256=hn70KcIG8jHmZyuKv2pcEmwgWtOEu24Efeji1KRYNUE,2964
|
66
66
|
locust/util/rounding.py,sha256=5haxR8mKhATqag6WvPby-MSRRgIw5Ob6thbyvMYZM7o,92
|
67
67
|
locust/util/timespan.py,sha256=Y0LtnhUq2Mq19p04u0XtBlYQ_-S2cRvwRdgru8W9WhA,986
|
68
|
-
locust/webui/dist/auth.html,sha256=
|
69
|
-
locust/webui/dist/index.html,sha256=
|
68
|
+
locust/webui/dist/auth.html,sha256=8_FuktuxoY1PtCbVXrsxfLTxD-qx0RtQnKd75FsK3lc,501
|
69
|
+
locust/webui/dist/index.html,sha256=sTykKMrWk5UeHVD9T6hH4H4LelzqaejEIVXoUcK5OpA,507
|
70
70
|
locust/webui/dist/report.html,sha256=sOdZZVgZbqgu86BBCSQf3uQUYXgmgSnXF32JpnyAII8,513
|
71
71
|
locust/webui/dist/assets/favicon.ico,sha256=IUl-rYqfpHdV38e-s0bkmFIeLS-n3Ug0DQxk-h202hI,8348
|
72
|
-
locust/webui/dist/assets/index-43911052.js,sha256=30mxmwVEWCFMlNvHbNyIY7ikeNMloTezui4UlW8DsBk,1645789
|
73
72
|
locust/webui/dist/assets/logo.png,sha256=EIVPqr6wE_yqguHaqFHIsH0ZACLSrvNWyYO7PbyIj4w,19299
|
74
|
-
locust-2.28.1.
|
75
|
-
locust-2.28.1.
|
76
|
-
locust-2.28.1.
|
77
|
-
locust-2.28.1.
|
78
|
-
locust-2.28.1.
|
79
|
-
locust-2.28.1.
|
73
|
+
locust-2.28.1.dev38.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
|
74
|
+
locust-2.28.1.dev38.dist-info/METADATA,sha256=ab5ANoYMFTo7EgRGanKdQXYELBSa_8VMyXGmJkQyvgI,7323
|
75
|
+
locust-2.28.1.dev38.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
76
|
+
locust-2.28.1.dev38.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
|
77
|
+
locust-2.28.1.dev38.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
|
78
|
+
locust-2.28.1.dev38.dist-info/RECORD,,
|