locust 2.31.9.dev27__py3-none-any.whl → 2.31.9.dev35__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 +2 -0
- locust/webui/dist/assets/{index-qqbll7P9.js → index-C35vpr6y.js} +51 -51
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +1 -1
- locust/webui/dist/report.html +1 -1
- {locust-2.31.9.dev27.dist-info → locust-2.31.9.dev35.dist-info}/METADATA +1 -1
- {locust-2.31.9.dev27.dist-info → locust-2.31.9.dev35.dist-info}/RECORD +11 -11
- {locust-2.31.9.dev27.dist-info → locust-2.31.9.dev35.dist-info}/LICENSE +0 -0
- {locust-2.31.9.dev27.dist-info → locust-2.31.9.dev35.dist-info}/WHEEL +0 -0
- {locust-2.31.9.dev27.dist-info → locust-2.31.9.dev35.dist-info}/entry_points.txt +0 -0
locust/webui/dist/auth.html
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
<meta name="theme-color" content="#000000" />
|
9
9
|
|
10
10
|
<title>Locust</title>
|
11
|
-
<script type="module" crossorigin src="./assets/index-
|
11
|
+
<script type="module" crossorigin src="./assets/index-C35vpr6y.js"></script>
|
12
12
|
</head>
|
13
13
|
<body>
|
14
14
|
<div id="root"></div>
|
locust/webui/dist/index.html
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
<meta name="theme-color" content="#000000" />
|
9
9
|
|
10
10
|
<title>Locust</title>
|
11
|
-
<script type="module" crossorigin src="./assets/index-
|
11
|
+
<script type="module" crossorigin src="./assets/index-C35vpr6y.js"></script>
|
12
12
|
</head>
|
13
13
|
<body>
|
14
14
|
<div id="root"></div>
|
locust/webui/dist/report.html
CHANGED
@@ -220,7 +220,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
220
220
|
<span style="color:${f};">
|
221
221
|
${h}: ${Rbe({chartValueFormatter:i,value:d})}
|
222
222
|
</span>
|
223
|
-
`,""):"No data",borderWidth:0},xAxis:{type:"time",startValue:(e.time||[
|
223
|
+
`,""):"No data",borderWidth:0},xAxis:{type:"time",min:(e.time||[new Date().toISOString()])[0],startValue:(e.time||[])[0],axisLabel:{formatter:Lbe}},grid:{left:60,right:40},yAxis:Ebe({splitAxis:a,yAxisLabels:o}),series:NW({charts:e,lines:r,scatterplot:s}),color:n,toolbox:{right:10,feature:{dataZoom:{title:{zoom:"Zoom Select",back:"Zoom Reset"},yAxisIndex:!1},saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),Nbe=(e,t)=>({symbol:"none",label:{formatter:r=>`Run #${r.dataIndex+1}`,padding:[0,0,8,0]},lineStyle:{color:t?gm.DARK.axisColor:gm.LIGHT.axisColor},data:(e.markers||[]).map(r=>({xAxis:r}))}),zbe=e=>t=>{const{batch:r}=t;if(!r)return;const[{start:n,startValue:i,end:a}]=r,o=n>0&&a<=100||i>0;e.setOption({dataZoom:[{type:"slider",show:o}]})},Bbe=oQ;function Fbe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s}){const[l,u]=V.useState(null),c=Bbe(({theme:{isDarkMode:h}})=>h),f=V.useRef(null);return V.useEffect(()=>{if(!f.current)return;const h=bce(f.current);h.setOption(Obe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s})),h.on("datazoom",zbe(h));const d=()=>h.resize();return window.addEventListener("resize",d),h.group="swarmCharts",Cce("swarmCharts"),u(h),()=>{Tce(h),window.removeEventListener("resize",d)}},[f]),V.useEffect(()=>{const h=r.every(({key:d})=>!!e[d]);l&&h&&l.setOption({series:r.map(({key:d,yAxisIndex:p,...v},g)=>({...v,data:e[d],...a?{yAxisIndex:p||g}:{},...g===0?{markLine:Nbe(e,c)}:{}}))})},[e,l,r,c]),V.useEffect(()=>{if(l){const{textColor:h,axisColor:d,backgroundColor:p,splitLine:v}=c?gm.DARK:gm.LIGHT;l.setOption({backgroundColor:p,textStyle:{color:h},title:{textStyle:{color:h}},legend:{icon:"circle",inactiveColor:h,textStyle:{color:h}},tooltip:{backgroundColor:p,textStyle:{color:h}},xAxis:{axisLine:{lineStyle:{color:d}}},yAxis:{axisLine:{lineStyle:{color:d}},splitLine:{lineStyle:{color:v}}}})}},[l,c]),V.useEffect(()=>{l&&l.setOption({series:NW({charts:e,lines:r,scatterplot:s})})},[r]),H.jsx("div",{ref:f,style:{width:"100%",height:"300px"}})}const Vbe=dl.percentilesToChart?dl.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],Gbe=["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],$be=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:Vbe,colors:Gbe},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function zW({charts:e}){return H.jsx("div",{children:$be.map((t,r)=>H.jsx(Fbe,{...t,charts:e},`swarm-chart-${r}`))})}const Hbe=({ui:{charts:e}})=>({charts:e});Kd(Hbe)(zW);function Wbe(e){return(e*100).toFixed(1)+"%"}function RC({classRatio:e}){return H.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>H.jsxs("li",{children:[`${Wbe(r)} ${t}`,n&&H.jsx(RC,{classRatio:n})]},`nested-ratio-${t}`))})}function BW({ratios:{perClass:e,total:t}}){return!e&&!t?null:H.jsxs("div",{children:[e&&H.jsxs(H.Fragment,{children:[H.jsx("h3",{children:"Ratio Per Class"}),H.jsx(RC,{classRatio:e})]}),t&&H.jsxs(H.Fragment,{children:[H.jsx("h3",{children:"Total Ratio"}),H.jsx(RC,{classRatio:t})]})]})}const Ube=({ui:{ratios:e}})=>({ratios:e});Kd(Ube)(BW);const wS={DARK:"dark",LIGHT:"light"},FW=localStorage.theme===wS.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?wS.DARK:wS.LIGHT,jbe={isDarkMode:!1},Ybe=Nq({name:"theme",initialState:jbe,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),Xbe=Ybe.reducer,Zbe=e=>qT({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"}}}}}),Kbe=Zbe(window.theme||FW),qbe=(window.theme||FW)==="dark",Qbe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"totalRps",title:"RPS",round:2},{key:"totalFailPerSec",title:"Failures/s",round:2}],Jbe=Mq({reducer:W3({theme:Xbe}),preloadedState:{theme:{isDarkMode:qbe}}});function eCe({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return H.jsx(KQ,{store:Jbe,children:H.jsxs($Y,{theme:Kbe,children:[H.jsx(TZ,{}),H.jsxs(SZ,{maxWidth:"lg",sx:{my:4},children:[H.jsxs(Nn,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[H.jsx(Tr,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&H.jsx(QZ,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),H.jsxs(Nn,{sx:{my:2},children:[H.jsxs(Nn,{sx:{display:"flex",columnGap:.5},children:[H.jsx(Tr,{fontWeight:600,children:"During:"}),H.jsxs(Tr,{children:[LC(r)," - ",LC(n)]})]}),H.jsxs(Nn,{sx:{display:"flex",columnGap:.5},children:[H.jsx(Tr,{fontWeight:600,children:"Target Host:"}),H.jsx(Tr,{children:a||"None"})]}),H.jsxs(Nn,{sx:{display:"flex",columnGap:.5},children:[H.jsx(Tr,{fontWeight:600,children:"Script:"}),H.jsx(Tr,{children:e})]})]}),H.jsxs(Nn,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[H.jsxs(Nn,{children:[H.jsx(Tr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),H.jsx(t4,{stats:s,tableStructure:Qbe})]}),!!u.length&&H.jsxs(Nn,{children:[H.jsx(Tr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),H.jsx(bne,{responseTimes:u})]}),H.jsxs(Nn,{children:[H.jsx(Tr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),H.jsx(QF,{errors:l})]}),!!o.length&&H.jsxs(Nn,{children:[H.jsx(Tr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),H.jsx(qF,{exceptions:o})]}),H.jsxs(Nn,{children:[H.jsx(Tr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),H.jsx(zW,{charts:i})]}),H.jsxs(Nn,{children:[H.jsx(Tr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),H.jsx(BW,{ratios:c})]})]})]})]})})}const tCe=bS.createRoot(document.getElementById("root"));tCe.render(H.jsx(p9,{fallbackRender:g9,children:H.jsx(eCe,{...x9})}));
|
224
224
|
</script>
|
225
225
|
</head>
|
226
226
|
{% endraw %}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
locust/__init__.py,sha256=Jit8eNUrwuMLqavyFvMZr69e61DILq_KB4yT4MciScw,1681
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=blCT0DJZ7Xor1J_UPSEUj_RgDbtYXLUP1ecG8ZQTtw4,460
|
4
4
|
locust/argument_parser.py,sha256=Q_P7Yt0KdtOiNAgTZcEVuxX9eGzJoyibI3mPrf0vzvA,29184
|
5
5
|
locust/clients.py,sha256=XK-xabq2_5GZKMEjebDobvEjeBTtCs8h2EelL7s68Qs,19346
|
6
6
|
locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -39,16 +39,16 @@ locust/util/load_locustfile.py,sha256=hn70KcIG8jHmZyuKv2pcEmwgWtOEu24Efeji1KRYNU
|
|
39
39
|
locust/util/rounding.py,sha256=5haxR8mKhATqag6WvPby-MSRRgIw5Ob6thbyvMYZM7o,92
|
40
40
|
locust/util/timespan.py,sha256=Y0LtnhUq2Mq19p04u0XtBlYQ_-S2cRvwRdgru8W9WhA,986
|
41
41
|
locust/util/url.py,sha256=s_W2PCxvxTWxWX0yUvp-8VBuQm881KwI5X9iifogZG4,321
|
42
|
-
locust/web.py,sha256=
|
42
|
+
locust/web.py,sha256=ObcTjiHTfZF24lMxrARVnL4iYblz6xulVhkUg1evkYM,28047
|
43
43
|
locust/webui/dist/assets/favicon-dark.png,sha256=6zVkRtiRfU45qQGvEhf1cq2nNauFs_JW5SI79wT0YkM,2437
|
44
44
|
locust/webui/dist/assets/favicon-light.png,sha256=VdG2GZyeTCOML7xfievupBP4EhmHoUqlVCw-tXqkvxU,2468
|
45
|
-
locust/webui/dist/assets/index-
|
46
|
-
locust/webui/dist/auth.html,sha256
|
47
|
-
locust/webui/dist/index.html,sha256=
|
48
|
-
locust/webui/dist/report.html,sha256=
|
45
|
+
locust/webui/dist/assets/index-C35vpr6y.js,sha256=wJdpYr95RJIb8_rrNXdXhzvlBsmIHwjAtcK5dy-CI5Q,1671038
|
46
|
+
locust/webui/dist/auth.html,sha256=-iVQdm91uJlX054bB1HWgxz3TOSUZ3T8NVbwhvFDUoM,648
|
47
|
+
locust/webui/dist/index.html,sha256=dMce1Nqjto_v1VJTv0V5Il257TDQ0hKRqsQPQhwqhio,654
|
48
|
+
locust/webui/dist/report.html,sha256=0MceANwhR3KBquonRTkDVLfg_pHrMA7s2CHSz_X0QHc,1471010
|
49
49
|
poetry.lock,sha256=M915pfu8Aer_KLr-xSjfsqxyrmfOulhzSLfsxYkM-ok,208302
|
50
|
-
locust-2.31.9.
|
51
|
-
locust-2.31.9.
|
52
|
-
locust-2.31.9.
|
53
|
-
locust-2.31.9.
|
54
|
-
locust-2.31.9.
|
50
|
+
locust-2.31.9.dev35.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
|
51
|
+
locust-2.31.9.dev35.dist-info/METADATA,sha256=qF7ocbnY0lRevgtXcSQe4YiEVLC3BSR1J7Mf78PXDkc,7725
|
52
|
+
locust-2.31.9.dev35.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
53
|
+
locust-2.31.9.dev35.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
|
54
|
+
locust-2.31.9.dev35.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|