index.html 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <link rel="shortcut icon" type="image/x-icon" href="style/favicon.ico"/>
  6. <link href="style/style.css" rel="stylesheet" type="text/css" />
  7. <link href="style/bootstrap.min.css" rel="stylesheet" type="text/css" />
  8. <script src="js/jquery-3.5.1.min.js"></script>
  9. <script src="js/bootstrap.min.js"></script>
  10. <script src="js/gatling.js"></script>
  11. <script src="js/menu.js"></script>
  12. <script src="js/ellipsis.js"></script>
  13. <script src="js/all_sessions.js"></script>
  14. <script src="js/stats.js"></script>
  15. <script src="js/highstock.js"></script>
  16. <script src="js/highcharts-more.js"></script>
  17. <script src="js/theme.js"></script>
  18. <script src="js/unpack.js"></script>
  19. <title>Gatling Stats - Global Information</title>
  20. </head>
  21. <body>
  22. <script>
  23. const storedTheme = localStorage.getItem('theme') || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
  24. if (storedTheme) document.documentElement.setAttribute('data-theme', storedTheme)
  25. function toggleTheme() {
  26. const currentTheme = document.documentElement.getAttribute("data-theme");
  27. const targetTheme = currentTheme === "light" ? "dark" : "light";
  28. document.documentElement.setAttribute('data-theme', targetTheme)
  29. localStorage.setItem('theme', targetTheme);
  30. };
  31. </script>
  32. <div class="app-container">
  33. <div class="frise"></div>
  34. <div class="head">
  35. <div class="gatling-open-source">
  36. <a class="gatling-logo gatling-logo-light" href="https://gatling.io" target="blank_" title="Gatling Home Page"><img alt="Gatling" src="style/logo-light.svg"/></a>
  37. <a class="gatling-logo gatling-logo-dark" href="https://gatling.io" target="blank_" title="Gatling Home Page"><img alt="Gatling" src="style/logo-dark.svg"/></a>
  38. <a class="gatling-documentation" href="https://gatling.io/docs/" target="_blank">Documentation</a>
  39. </div>
  40. <div class="nav spacer"></div>
  41. <a class="enterprise" href="https://gatling.io/enterprise/next-step/" target="_blank"><strong>Try</strong>
  42. <img class="logo-enterprise-light" alt="Gatling Enterprise" src="style/logo-enterprise-light.svg"/>
  43. <img class="logo-enterprise-dark" alt="Gatling Enterprise" src="style/logo-enterprise-dark.svg"/>
  44. </a>
  45. <button id="theme-toggle" class="theme-toggle" type="button" onclick="toggleTheme()" aria-label="Toggle user interface mode">
  46. <span class="toggle-dark"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg></span>
  47. <span class="toggle-light"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg></span>
  48. </button>
  49. </div>
  50. <div class="container details">
  51. <div class="nav">
  52. <ul></ul>
  53. </div>
  54. <div class="cadre">
  55. <div class="content">
  56. <div class="content-header">
  57. <div class="onglet">
  58. CartsPageSimulation
  59. </div>
  60. <div class="sous-menu" id="sousMenu">
  61. <div class="sous-menu-spacer">
  62. <div class="item ouvert"><a href="index.html">Global</a></div>
  63. <div class="item "><a id="details_link" href="#">Details</a></div>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="content-in">
  68. <div class="container-article">
  69. <div class="article">
  70. <div class="schema-container">
  71. <div id="ranges" class="schema ranges">
  72. </div>
  73. <div class="schema polar">
  74. <div id="container_number_of_requests"></div>
  75. </div>
  76. <div class="simulation-card">
  77. <div class="simulation-version-information">
  78. <span class="simulation-information-title">Gatling Version</span>
  79. <span class="simulation-information-item">
  80. <span class="simulation-information-label">Version: </span>
  81. <span>3.13.5</span>
  82. </span>
  83. <span class="simulation-information-item">
  84. <span class="simulation-information-label">Released: </span>
  85. <span>2025-03-11</span>
  86. </span>
  87. </div>
  88. <div id="simulation-information" class="simulation-version-information">
  89. <span class="simulation-information-title">Run Information</span>
  90. <div class="simulation-information-container">
  91. <span class="simulation-information-item">
  92. <span class="simulation-information-label">Date: </span>
  93. <span>2025-04-17 18:15:28 GMT</span>
  94. </span>
  95. <span class="simulation-information-item">
  96. <span class="simulation-information-label">Duration: </span>
  97. <span>1m 43s </span>
  98. </span>
  99. <span class="simulation-information-item">
  100. <span class="simulation-information-label">Description: </span>
  101. <span>&mdash;</span>
  102. </span>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <div id="statistics_table_container">
  108. <div id="stats" class="statistics extensible-geant collapsed">
  109. <div class="title">
  110. <div id="statistics_title" class="title_base"><span class="title_base_stats">Stats</span><span class="expand-table">Fixed height</span><span id="toggle-stats" class="toggle-table"></span><span class="collapse-table">Full size</span></div>
  111. <div class="right">
  112. <button class="statistics-button expand-all-button">Expand all groups</button>
  113. <button class="statistics-button collapse-all-button">Collapse all groups</button>
  114. <button id="statistics_full_screen" class="statistics-button" onclick="openStatisticsTableModal()"><img alt="Fullscreen" src="style/fullscreen.svg"></button>
  115. </div>
  116. </div>
  117. <div class="scrollable">
  118. <table id="container_statistics_head" class="statistics-in extensible-geant">
  119. <thead>
  120. <tr>
  121. <th rowspan="2" id="col-1" class="header sortable sorted-up"><span>Requests</span></th>
  122. <th colspan="5" class="header"><span class="executions">Executions</span></th>
  123. <th colspan="8" class="header"><span class="response-time">Response Time (ms)</span></th>
  124. </tr>
  125. <tr>
  126. <th id="col-2" class="header sortable"><span>Total</span></th>
  127. <th id="col-3" class="header sortable"><span>OK</span></th>
  128. <th id="col-4" class="header sortable"><span>KO</span></th>
  129. <th id="col-5" class="header sortable"><span>% KO</span></th>
  130. <th id="col-6" class="header sortable"><span><abbr title="Count of events per second">Cnt/s</abbr></span></th>
  131. <th id="col-7" class="header sortable"><span>Min</span></th>
  132. <th id="col-8" class="header sortable"><span>50th pct</span></th>
  133. <th id="col-9" class="header sortable"><span>75th pct</span></th>
  134. <th id="col-10" class="header sortable"><span>95th pct</span></th>
  135. <th id="col-11" class="header sortable"><span>99th pct</span></th>
  136. <th id="col-12" class="header sortable"><span>Max</span></th>
  137. <th id="col-13" class="header sortable"><span>Mean</span></th>
  138. <th id="col-14" class="header sortable"><span><abbr title="Standard Deviation">Std Dev</abbr></span></th>
  139. </tr>
  140. </thead>
  141. <tbody></tbody>
  142. </table>
  143. <table id="container_statistics_body" class="statistics-in extensible-geant">
  144. <tbody></tbody>
  145. </table>
  146. </div>
  147. </div>
  148. </div>
  149. <dialog id="statistics_table_modal" class="statistics-table-modal">
  150. <div class="statistics-table-modal-header"><button class="button-modal" onclick="closeStatisticsTableModal()"><img alt="Close" src="style/close.svg"></button></div>
  151. <div class="statistics-table-modal-container">
  152. <div id="statistics_table_modal_content" class="statistics-table-modal-content"></div>
  153. </div>
  154. </dialog>
  155. <script>
  156. function openStatisticsTableModal () {
  157. const statsTable = document.getElementById("stats");
  158. const statsTableModal = document.getElementById("statistics_table_modal");
  159. const fullScreenButton = document.getElementById("statistics_full_screen");
  160. fullScreenButton.disabled = true;
  161. if (typeof statsTableModal.showModal === "function") {
  162. const statsTableModalContent = document.getElementById("statistics_table_modal_content");
  163. statsTableModalContent.innerHTML = "";
  164. statsTableModalContent.appendChild(statsTable);
  165. statsTableModal.showModal();
  166. statsTableModal.addEventListener("close", function () {
  167. const container = document.getElementById("statistics_table_container");
  168. container.appendChild(statsTable);
  169. fullScreenButton.disabled = false;
  170. });
  171. } else {
  172. const incompatibleBrowserVersionMessage = document.createElement("div");
  173. incompatibleBrowserVersionMessage.innerText = "Sorry, the <dialog> API is not supported by this browser.";
  174. statsTable.insertBefore(incompatibleBrowserVersionMessage, statsTable.children[0]);
  175. }
  176. }
  177. function closeStatisticsTableModal () {
  178. const statsTableModal = document.getElementById("statistics_table_modal");
  179. statsTableModal.close();
  180. }
  181. </script>
  182. <div class="statistics extensible-geant collapsed">
  183. <div class="title">
  184. Errors
  185. </div>
  186. <table id="container_errors" class="statistics-in extensible-geant">
  187. <thead>
  188. <tr>
  189. <th id="error-col-1" class="header sortable"><span>Error</span></th>
  190. <th id="error-col-2" class="header sortable"><span>Count</span></th>
  191. <th id="error-col-3" class="header sortable"><span>Percentage</span></th>
  192. </tr>
  193. </thead>
  194. <tbody>
  195. <tr>
  196. <td class="error-col-1 total ko">j.n.SocketException: No buffer space available (maximum connections reached?): connect<span class="value" style="display:none">0</span></td>
  197. <td class="value error-col-2 total ko">15652</td>
  198. <td class="value error-col-3 total ko">55.64%</td>
  199. </tr>
  200. <tr>
  201. <td class="error-col-1 total ko">i.n.c.ConnectTimeoutException: connection timed out after 10000 ms: ecomm.gatling.io/18.164.246.108:443<span class="value" style="display:none">1</span></td>
  202. <td class="value error-col-2 total ko">2857</td>
  203. <td class="value error-col-3 total ko">10.16%</td>
  204. </tr>
  205. <tr>
  206. <td class="error-col-1 total ko">i.n.c.ConnectTimeoutException: connection timed out after 10000 ms: ecomm.gatling.io/18.164.246.56:443<span class="value" style="display:none">2</span></td>
  207. <td class="value error-col-2 total ko">2834</td>
  208. <td class="value error-col-3 total ko">10.07%</td>
  209. </tr>
  210. <tr>
  211. <td class="error-col-1 total ko">i.n.c.ConnectTimeoutException: connection timed out after 10000 ms: ecomm.gatling.io/18.164.246.48:443<span class="value" style="display:none">3</span></td>
  212. <td class="value error-col-2 total ko">2780</td>
  213. <td class="value error-col-3 total ko">9.88%</td>
  214. </tr>
  215. <tr>
  216. <td class="error-col-1 total ko">i.n.c.ConnectTimeoutException: connection timed out after 10000 ms: ecomm.gatling.io/18.164.246.111:443<span class="value" style="display:none">4</span></td>
  217. <td class="value error-col-2 total ko">2683</td>
  218. <td class="value error-col-3 total ko">9.54%</td>
  219. </tr>
  220. <tr>
  221. <td class="error-col-1 total ko">j.n.BindException: Address already in use: getsockopt<span class="value" style="display:none">5</span></td>
  222. <td class="value error-col-2 total ko">369</td>
  223. <td class="value error-col-3 total ko">1.31%</td>
  224. </tr>
  225. <tr>
  226. <td class="error-col-1 total ko">i.n.h.s.SslHandshakeTimeoutException: handshake timed out after 10000ms<span class="value" style="display:none">6</span></td>
  227. <td class="value error-col-2 total ko">209</td>
  228. <td class="value error-col-3 total ko">0.74%</td>
  229. </tr>
  230. <tr>
  231. <td class="error-col-1 total ko">Request timeout to ecomm.gatling.io/18.164.246.108:443 after 60000 ms<span class="value" style="display:none">7</span></td>
  232. <td class="value error-col-2 total ko">209</td>
  233. <td class="value error-col-3 total ko">0.74%</td>
  234. </tr>
  235. <tr>
  236. <td class="error-col-1 total ko">Request timeout to ecomm.gatling.io/18.164.246.48:443 after 60000 ms<span class="value" style="display:none">8</span></td>
  237. <td class="value error-col-2 total ko">204</td>
  238. <td class="value error-col-3 total ko">0.73%</td>
  239. </tr>
  240. <tr>
  241. <td class="error-col-1 total ko">Request timeout to ecomm.gatling.io/18.164.246.56:443 after 60000 ms<span class="value" style="display:none">9</span></td>
  242. <td class="value error-col-2 total ko">172</td>
  243. <td class="value error-col-3 total ko">0.61%</td>
  244. </tr>
  245. <tr>
  246. <td class="error-col-1 total ko">Request timeout to ecomm.gatling.io/18.164.246.111:443 after 60000 ms<span class="value" style="display:none">10</span></td>
  247. <td class="value error-col-2 total ko">164</td>
  248. <td class="value error-col-3 total ko">0.58%</td>
  249. </tr>
  250. </tbody>
  251. </table>
  252. </div>
  253. <div class="schema geant">
  254. <div id="active_users" class="geant"></div>
  255. </div>
  256. <div class="schema geant">
  257. <div id="responsetimeDistributionContainer" class="geant"></div>
  258. </div>
  259. <div class="schema geant">
  260. <div id="responsetimepercentilesovertimeokPercentilesContainer" class="geant"></div>
  261. </div>
  262. <div class="schema geant">
  263. <div id="requests" class="geant"></div>
  264. </div>
  265. <div class="schema geant">
  266. <div id="responses" class="geant"></div>
  267. </div>
  268. </div>
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. </div>
  274. <script>
  275. var pageStats = stats.stats;
  276. $(document).ready(function() {
  277. $('.simulation-tooltip').popover({trigger:'hover', placement:'left'});
  278. setDetailsLinkUrl();
  279. setGlobalMenu();
  280. setActiveMenu();
  281. fillStats(pageStats);
  282. Highcharts.setOptions({
  283. global: { useUTC: false }
  284. });
  285. var rangesChart = new Highcharts.Chart({
  286. chart: {
  287. renderTo: 'ranges',
  288. marginRight: 100
  289. },
  290. credits: { enabled: false },
  291. legend: { enabled: false },
  292. title: { text: 'A title to let highcharts reserve the place for the title set later' },
  293. xAxis: {
  294. categories: [
  295. pageStats.group1.htmlName,
  296. pageStats.group2.htmlName,
  297. pageStats.group3.htmlName,
  298. pageStats.group4.htmlName
  299. ]
  300. },
  301. yAxis: {
  302. title: { text: 'Number of Requests' },
  303. reversedStacks: false
  304. },
  305. tooltip: {
  306. formatter: function() {
  307. var s;
  308. if (this.point.name) { // the pie chart
  309. s = ''+ this.point.name +': '+ this.y +'% requests';
  310. } else {
  311. s = ''+ this.y + ' requests';
  312. }
  313. return s;
  314. }
  315. },
  316. plotOptions: {
  317. series: {
  318. stacking: 'normal',
  319. shadow: true
  320. }
  321. },
  322. series: [
  323. {
  324. type: 'column',
  325. data: [{
  326. color: '#68b65c',
  327. y: pageStats.group1.count
  328. },
  329. {
  330. color: '#FFDD00',
  331. y: pageStats.group2.count
  332. },
  333. {
  334. color: '#FFA900',
  335. y: pageStats.group3.count
  336. },
  337. {
  338. color: '#f15b4f',
  339. y: pageStats.group4.count
  340. }]
  341. },
  342. {
  343. type: 'pie',
  344. name: 'Percentages',
  345. data: [
  346. {
  347. name: pageStats.group1.name,
  348. y: pageStats.group1.percentage,
  349. color: '#68b65c'
  350. },
  351. {
  352. name: pageStats.group2.name,
  353. y: pageStats.group2.percentage,
  354. color: '#FFDD00'
  355. },
  356. {
  357. name: pageStats.group3.name,
  358. y: pageStats.group3.percentage,
  359. color: '#FFA900'
  360. },
  361. {
  362. name: pageStats.group4.name,
  363. y: pageStats.group4.percentage,
  364. color: '#f15b4f'
  365. }
  366. ],
  367. center: [345, 0],
  368. size: 90,
  369. showInLegend: false,
  370. dataLabels: { enabled: false }
  371. }
  372. ]
  373. });
  374. rangesChart.setTitle({
  375. text: '<span class="chart_title">Response Time Ranges</span>',
  376. useHTML: true
  377. });
  378. function numberOfRequestsDataForGroup(group) {
  379. var data = {names: [], oks: [], kos: []};
  380. $.each(group.contents, function(contentName, content) {
  381. if (content.type == 'GROUP') {
  382. var result = numberOfRequestsDataForGroup(content);
  383. data.names = data.names.concat(result.names);
  384. data.oks = data.oks.concat(result.oks);
  385. data.kos = data.kos.concat(result.kos);
  386. }
  387. else if (content.type == 'REQUEST') {
  388. data.names.push(content.path);
  389. data.oks.push(parseInt(content.stats.numberOfRequests.ok));
  390. data.kos.push(parseInt(content.stats.numberOfRequests.ko));
  391. }
  392. });
  393. return data;
  394. }
  395. var numberOfRequestsData = numberOfRequestsDataForGroup(stats);
  396. var tickInterval = Math.ceil(numberOfRequestsData.names.length / 1000);
  397. new Highcharts.Chart({
  398. chart: {
  399. renderTo:'container_number_of_requests',
  400. polar:true,
  401. type:'column',
  402. height:330
  403. },
  404. credits:{
  405. enabled:false
  406. },
  407. title:{
  408. text:'<span class="chart_title">Number of requests</span>',
  409. useHTML: true,
  410. widthAdjust:-20
  411. },
  412. xAxis:{
  413. tickmarkPlacement:'on',
  414. tickInterval: tickInterval,
  415. categories:numberOfRequestsData.names,
  416. labels:{ enabled:false }
  417. },
  418. yAxis:{
  419. min:0,
  420. reversedStacks: false
  421. },
  422. plotOptions:{
  423. series:{
  424. stacking:'normal',
  425. groupPadding:0,
  426. pointPlacement:'on',
  427. shadow: true
  428. }
  429. },
  430. legend: {
  431. borderWidth: 0,
  432. itemStyle: { fontWeight: "normal" },
  433. symbolRadius: 0
  434. },
  435. series:[
  436. {
  437. name:'OK',
  438. data:numberOfRequestsData.oks,
  439. color:"#68b65c"
  440. },
  441. {
  442. name:'KO',
  443. data:numberOfRequestsData.kos,
  444. color:"#f15b4f"
  445. }
  446. ]
  447. });
  448. $('#container_exceptions').sortable('#container_exceptions');
  449. function generateHtmlRow(request, level, index, parent, group) {
  450. if (request.name == 'All Requests')
  451. var url = 'index.html';
  452. else
  453. var url = request.pathFormatted + '.html';
  454. if (group)
  455. var expandButtonStyle = '';
  456. else
  457. var expandButtonStyle = ' hidden';
  458. if (request.stats.numberOfRequests.total != 0)
  459. var koPercent = (request.stats.numberOfRequests.ko * 100 / request.stats.numberOfRequests.total).toFixed(2);
  460. else
  461. var koPercent = '-'
  462. return '<tr id="' + request.pathFormatted + '" data-parent=' + parent + '> \
  463. <td class="total col-1"> \
  464. <div class="expandable-container"> \
  465. <span id="' + request.pathFormatted + '" style="margin-left: ' + (level * 10) + 'px;" class="expand-button' + expandButtonStyle + '">&nbsp;</span> \
  466. <a href="' + url +'" class="withTooltip">' + ellipsedLabel({ name: request.name, parentClass: "table-cell-tooltip" }) + '</a><span class="value" style="display:none;">' + index + '</span> \
  467. </div> \
  468. </td> \
  469. <td class="value total col-2">' + request.stats.numberOfRequests.total + '</td> \
  470. <td class="value ok col-3">' + request.stats.numberOfRequests.ok + '</td> \
  471. <td class="value ko col-4">' + request.stats.numberOfRequests.ko + '</td> \
  472. <td class="value ko col-5">' + koPercent + '</td> \
  473. <td class="value total col-6">' + request.stats.meanNumberOfRequestsPerSecond.total + '</td> \
  474. <td class="value total col-7">' + request.stats.minResponseTime.total + '</td> \
  475. <td class="value total col-8">' + request.stats.percentiles1.total + '</td> \
  476. <td class="value total col-9">' + request.stats.percentiles2.total + '</td> \
  477. <td class="value total col-10">' + request.stats.percentiles3.total + '</td> \
  478. <td class="value total col-11">' + request.stats.percentiles4.total + '</td> \
  479. <td class="value total col-12">' + request.stats.maxResponseTime.total + '</td> \
  480. <td class="value total col-13">' + request.stats.meanResponseTime.total + '</td> \
  481. <td class="value total col-14">' + request.stats.standardDeviation.total + '</td> \
  482. </tr>';
  483. }
  484. function generateHtmlRowsForGroup(group, level, index, parent) {
  485. var buffer = '';
  486. if (!parent)
  487. parent = 'ROOT';
  488. else {
  489. buffer += generateHtmlRow(group, level - 1, index, parent, true);
  490. index++;
  491. parent = group.pathFormatted;
  492. }
  493. $.each(group.contents, function(contentName, content) {
  494. if (content.type == 'GROUP') {
  495. var result = generateHtmlRowsForGroup(content, level + 1, index, parent);
  496. buffer += result.html;
  497. index = result.index;
  498. }
  499. else if (content.type == 'REQUEST') {
  500. buffer += generateHtmlRow(content, level, index, parent);
  501. index++;
  502. }
  503. });
  504. return { html: buffer, index: index };
  505. }
  506. $('#container_statistics_head tbody').append(generateHtmlRow(stats, 0, 0));
  507. var lines = generateHtmlRowsForGroup(stats, 0, 0);
  508. $('#container_statistics_body tbody').append(lines.html);
  509. $('#container_statistics_head').sortable('#container_statistics_body');
  510. $('.statistics').expandable();
  511. if (lines.index < 30) {
  512. $('#statistics_title span').attr('style', 'display: none;');
  513. } else {
  514. $('#statistics_title').addClass('title_collapsed');
  515. $('#statistics_title').click(function() {
  516. $('#toggle-stats').toggleClass("off");
  517. $(this).toggleClass('title_collapsed').toggleClass('title_expanded');
  518. $('#container_statistics_body').parent().toggleClass('scrollable').toggleClass('');
  519. });
  520. }
  521. $('.table-cell-tooltip').popover({trigger:'hover'});
  522. $('#container_errors').sortable('#container_errors');
  523. allUsersData.yAxis = 0;
  524. var allUsersChart = new Highcharts.StockChart({
  525. chart: {
  526. renderTo: 'active_users',
  527. zoomType: 'x'
  528. },
  529. credits: { enabled: false },
  530. legend: {
  531. enabled: true,
  532. floating: true,
  533. align: 'right',
  534. verticalAlign: 'top',
  535. layout: 'vertical',
  536. borderWidth: 0,
  537. itemStyle: { fontWeight: "normal" },
  538. symbolRadius: 0
  539. },
  540. title: { text: 'A title to let highcharts reserve the place for the title set later' },
  541. navigator: {
  542. maskInside: false
  543. },
  544. rangeSelector: {
  545. buttonSpacing: 0,
  546. buttonTheme: {
  547. fill: '#CFC9C6',
  548. padding: 1,
  549. stroke: '#000000',
  550. 'stroke-width': 0.25,
  551. style: {
  552. color: '#000000',
  553. fontWeight: 'bold',
  554. },
  555. states: {
  556. stroke: '#000000',
  557. 'stroke-width': 0.25,
  558. hover: {
  559. fill: '#92918C',
  560. style: { color: 'black' }
  561. },
  562. select: {
  563. fill: '#FFA900',
  564. style: { color: 'white' }
  565. }
  566. }
  567. },
  568. buttons : [
  569. {
  570. type : 'minute',
  571. count : 1,
  572. text : '1m'
  573. }, {
  574. type : 'minute',
  575. count : 10,
  576. text : '10m'
  577. }, {
  578. type : 'hour',
  579. count : 1,
  580. text : '1h'
  581. }, {
  582. type : 'all',
  583. count : 1,
  584. text : 'All'
  585. }
  586. ],
  587. selected : 3,
  588. inputEnabled : false
  589. },
  590. xAxis: {
  591. type: 'datetime',
  592. ordinal: false,
  593. maxZoom: 10000 // three days
  594. },
  595. yAxis: {
  596. title: { text: 'Number of Active Users' },
  597. opposite: false,
  598. min: 0
  599. },
  600. series: [
  601. {
  602. color: '#5E7BE2',
  603. name: 'Cart Page Load Test',
  604. data: [
  605. [1744913729000,3201],[1744913730000,4871],[1744913731000,11272],[1744913732000,14415],[1744913733000,21276],[1744913734000,24006],[1744913735000,24396],[1744913736000,24861],[1744913737000,17848],[1744913738000,17744],[1744913739000,16240],[1744913740000,15527],[1744913741000,15377],[1744913742000,15198],[1744913743000,15010],[1744913744000,14748],[1744913745000,14282],[1744913746000,13873],[1744913747000,13731],[1744913748000,13642],[1744913749000,13598],[1744913750000,13515],[1744913751000,13476],[1744913752000,13421],[1744913753000,13388],[1744913754000,13367],[1744913755000,13352],[1744913756000,13293],[1744913757000,13265],[1744913758000,13232],[1744913759000,13205],[1744913760000,13162],[1744913761000,13109],[1744913762000,12848],[1744913763000,12720],[1744913764000,12619],[1744913765000,12480],[1744913766000,12312],[1744913767000,12271],[1744913768000,12238],[1744913769000,12206],[1744913770000,12163],[1744913771000,12125],[1744913772000,9901],[1744913773000,6921],[1744913774000,3752],[1744913775000,2332],[1744913776000,2159],[1744913777000,2111],[1744913778000,2079],[1744913779000,2054],[1744913780000,2013],[1744913781000,1972],[1744913782000,1898],[1744913783000,1871],[1744913784000,1846],[1744913785000,1806],[1744913786000,1749],[1744913787000,1712],[1744913788000,1680],[1744913789000,1652],[1744913790000,1622],[1744913791000,1591],[1744913792000,1544],[1744913793000,1508],[1744913794000,1467],[1744913795000,1437],[1744913796000,1402],[1744913797000,1333],[1744913798000,967],[1744913799000,762],[1744913800000,591],[1744913801000,378],[1744913802000,312],[1744913803000,273],[1744913804000,245],[1744913805000,212],[1744913806000,188],[1744913807000,166],[1744913808000,134],[1744913809000,120],[1744913810000,112],[1744913811000,86],[1744913812000,70],[1744913813000,51],[1744913814000,43],[1744913815000,28],[1744913816000,23],[1744913817000,19],[1744913818000,16],[1744913819000,14],[1744913820000,11],[1744913821000,9],[1744913822000,6],[1744913823000,6],[1744913824000,6],[1744913825000,5],[1744913826000,4],[1744913827000,3],[1744913828000,3],[1744913829000,2],[1744913830000,1],[1744913831000,1],[1744913832000,1]
  606. ],
  607. tooltip: { yDecimals: 0, ySuffix: '', valueDecimals: 0 }},
  608. allUsersData
  609. ]
  610. });
  611. allUsersChart.setTitle({
  612. text: '<span class="chart_title">Active Users along the Simulation</span>',
  613. useHTML: true
  614. });
  615. allUsersData.yAxis = 1;
  616. var responsetimeDistributionChart = new Highcharts.Chart({
  617. chart: {
  618. renderTo: 'responsetimeDistributionContainer',
  619. type: 'column',
  620. marginBottom: 60
  621. },
  622. credits: { enabled: false },
  623. legend: {
  624. enabled: true,
  625. floating: true,
  626. y: 5,
  627. borderWidth: 0,
  628. itemStyle: { fontWeight: "normal" },
  629. symbolRadius: 0
  630. },
  631. title: { text: 'A title to let highcharts reserve the place for the title set later' },
  632. navigator: {
  633. maskInside: false
  634. },
  635. xAxis: {
  636. categories: ['300', '900', '1500', '2101', '2701', '3301', '3901', '4501', '5101', '5702', '6302', '6902', '7502', '8102', '8702', '9302', '9903', '10503', '11103', '11703', '12303', '12903', '13504', '14104', '14704', '15304', '15904', '16504', '17105', '17705', '18305', '18905', '19505', '20105', '20706', '21306', '21906', '22506', '23106', '23706', '24306', '24907', '25507', '26107', '26707', '27307', '27907', '28508', '29108', '29708', '30308', '30908', '31508', '32109', '32709', '33309', '33909', '34509', '35109', '35710', '36310', '36910', '37510', '38110', '38710', '39310', '39911', '40511', '41111', '41711', '42311', '42911', '43512', '44112', '44712', '45312', '45912', '46512', '47113', '47713', '48313', '48913', '49513', '50113', '50714', '51314', '51914', '52514', '53114', '53714', '54314', '54915', '55515', '56115', '56715', '57315', '57915', '58516', '59116', '59716'],
  637. tickInterval: 20
  638. },
  639. yAxis: {
  640. min: 0,
  641. title: { text: 'Percentage of Requests' },
  642. reversedStacks: false
  643. },
  644. tooltip: {
  645. formatter: function() {
  646. return '<b>'+ this.x +' ms</b><br/>'+
  647. this.series.name +': '+ this.y +' %<br/>'+
  648. 'Total: '+ this.point.stackTotal + ' %';
  649. }
  650. },
  651. plotOptions: {
  652. series: {
  653. groupPadding: 0,
  654. stacking: 'normal',
  655. shadow: true
  656. }
  657. },
  658. series: [
  659. {
  660. type: 'column',
  661. color: '#68b65c',
  662. name: 'OK',
  663. data: [
  664. 0.91,0.93,1.12,1.07,0.76,0.8,0.96,1.24,0.61,0.6,1.07,1.06,1.39,1.3,1.88,1.05,1.27,1.56,0.85,0.27,0.24,0.24,0.19,0.33,0.42,0.23,0.15,0.1,0.12,0.16,0.14,0.23,0.19,0.14,0.16,0.19,0.24,0.25,0.29,0.36,0.32,0.29,0.29,0.25,0.2,0.19,0.14,0.2,0.14,0.15,0.12,0.11,0.16,0.2,0.16,0.23,0.16,0.13,0.18,0.16,0.13,0.13,0.07,0.1,0.08,0.1,0.13,0.14,0.11,0.08,0.1,0.08,0.11,0.08,0.06,0.08,0.06,0.07,0.07,0.05,0.04,0.02,0.03,0.04,0.02,0.02,0.02,0.04,0.02,0.01,0.02,0.03,0.02,0.03,0.03,0.03,0.02,0.03,0.03,0.04
  665. ],
  666. tooltip: { yDecimals: 0, ySuffix: 'ms' }
  667. },
  668. {
  669. type: 'column',
  670. color: '#f15b4f',
  671. name: 'KO',
  672. data: [
  673. 10.37,6.0,2.32,3.66,9.24,1.33,0.79,0.16,3.96,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.26,0.35,0.13,0.0,0.0,0.07,0.0,0.03,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.51,0.16,0.01,0.05,0.02,0.01,0.0,0.01,0.0,0.0,0.0,0.0,0.0,0.06,0.0,0.02,0.04,0.95,0.28,0.43,0.26,0.01,0.01,0.0,0.01,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.4,7.93,11.6,3.66,1.04,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.81
  674. ],
  675. tooltip: { yDecimals: 0, ySuffix: 'ms' }
  676. }
  677. ]
  678. });
  679. responsetimeDistributionChart.setTitle({
  680. text: '<span class="chart_title">Response Time Distribution</span>',
  681. useHTML: true
  682. });
  683. var responsetimepercentilesovertimeokPercentiles = unpack([[1744913729,[1394,7380,8205,8756,9414,10627,10817,10879,11760,17148]],[1744913730,[7673,9130,9858,10397,10436,10645,11113,12643,27775,41121]],[1744913731,[4445,22366,24333,28639,30543,32304,33481,35993,40156,51108]],[1744913732,[2876,14496,21221,28298,31132,33213,35031,36801,42245,47120]],[1744913733,[3886,5273,20831,29619,32148,33157,35190,37907,47897,59346]],[1744913734,[3759,14656,22053,26524,32138,34629,35306,38762,40335,40335]],[1744913735,[2147,2734,4492,4575,4692,4701,4729,4736,4747,15346]],[1744913736,[1922,4130,4268,4436,4439,4444,4488,4602,4610,4611]],[1744913737,[1206,1480,6781,11543,13552,23531,26541,38905,49452,59721]],[1744913738,[721,5988,6951,9660,12490,19251,24463,35095,46713,59768]],[1744913739,[450,4857,6503,8231,14407,19071,25817,34481,57236,59826]],[1744913740,[164,3886,5416,13496,18221,23457,27797,39524,59325,59863]],[1744913741,[153,2198,3910,7977,13348,19543,24486,35050,56919,59006]],[1744913742,[140,1012,4624,31689,34002,37900,42713,52287,58647,58767]],[1744913743,[164,766,4990,37389,47737,53703,53727,53817,58464,58464]],[1744913744,[274,527,1223,3736,4695,8725,10026,24859,55223,55223]],[1744913745,[134,276,2247,18193,21586,35819,46477,52505,58152,58152]],[1744913746,[113,583,2385,12185,15388,19846,23056,49932,58172,59712]],[1744913747,[154,1207,5887,17687,22175,25704,31459,48562,58659,59985]],[1744913748,[445,1491,6510,15917,19901,23902,28266,49266,57203,57203]],[1744913749,[335,2451,7189,23619,24321,26381,49575,53236,55840,55840]],[1744913750,[451,4029,12115,22783,26679,30188,38135,52699,55603,56338]],[1744913751,[555,5238,16193,39918,45841,50596,53087,54948,56939,58457]],[1744913752,[497,8934,29128,43222,46599,48014,49733,58359,58874,59676]],[1744913753,[528,7699,29737,43836,45712,46890,50547,55881,58108,59985]],[1744913754,[452,8530,32543,42940,43920,45269,46914,51918,58042,58756]],[1744913755,[183,5536,24063,40943,42759,44217,45650,49637,57042,59637]],[1744913756,[349,2881,12166,37177,39958,41385,43751,47160,55492,56108]],[1744913757,[456,2753,11945,23740,27943,33098,39633,44091,55650,59691]],[1744913758,[311,1994,8406,27259,32050,37066,40447,42267,50301,52517]],[1744913759,[200,1904,7479,27071,32564,37090,40803,43234,48721,56532]],[1744913760,[306,1304,4770,21876,26044,31221,39051,40851,50086,52760]],[1744913761,[467,1572,13932,33598,35578,36425,40100,42958,50046,56205]],[1744913762,[323,1281,19504,34832,36259,36934,37843,41510,45212,45212]],[1744913763,[191,1200,16293,30393,32330,34597,35625,37944,49851,49851]],[1744913764,[192,979,17262,30254,33225,34475,35892,39472,42958,45143]],[1744913765,[230,1436,24363,33584,34705,35992,37331,40548,46905,53905]],[1744913766,[171,711,15317,31286,31522,33352,34706,41880,45074,47149]],[1744913767,[172,838,6146,24193,27123,29779,33560,36296,54403,54813]],[1744913768,[177,979,4600,24260,28683,29699,31014,31984,50397,50397]],[1744913769,[290,1016,5740,16624,17049,19730,25210,29643,33713,33713]],[1744913770,[304,2183,6570,17826,25806,27793,30032,50367,51561,51561]],[1744913771,[309,2552,10189,21691,27788,28316,30630,34115,58373,58373]],[1744913772,[435,1839,7819,25483,26829,28200,29165,31590,34992,34992]],[1744913773,[561,1506,11517,18612,20318,22716,29641,31703,44339,44339]],[1744913774,[581,2048,7441,17929,18434,22756,24567,26260,30218,30218]],[1744913775,[1140,1801,6262,14781,25882,25882,25882,25882,25882,25882]],[1744913776,[914,10471,19124,23459,27614,27614,29291,29291,29291,29291]],[1744913777,[2455,8935,12126,14508,14508,30426,30426,30426,30426,30426]],[1744913778,null],[1744913779,[2316,2316,3249,11090,11090,11090,11090,11090,11090,11090]],[1744913780,[3751,3751,17872,18779,18779,18779,18779,18779,18779,18779]],[1744913781,null],[1744913782,[8719,8719,17588,18149,18149,18149,18149,18149,18149,18149]],[1744913783,null],[1744913784,null],[1744913785,null],[1744913786,null],[1744913787,null],[1744913788,[5323,5323,5457,17371,17371,17371,17371,17371,17371,17371]],[1744913789,[1589,1589,5980,5980,5980,5980,5980,5980,5980,5980]],[1744913790,[2409,2409,2409,2409,2409,2409,2409,2409,2409,2409]],[1744913791,null],[1744913792,[1101,1101,4768,5143,5143,5143,5143,5143,5143,5143]],[1744913793,null],[1744913794,null],[1744913795,null],[1744913796,null],[1744913797,null],[1744913798,null],[1744913799,null],[1744913800,null],[1744913801,null],[1744913802,null],[1744913803,null],[1744913804,null],[1744913805,null],[1744913806,null],[1744913807,null],[1744913808,null],[1744913809,null],[1744913810,null],[1744913811,null],[1744913812,null],[1744913813,null],[1744913814,null],[1744913815,null],[1744913816,null],[1744913817,null],[1744913818,null],[1744913819,null],[1744913820,null],[1744913821,null],[1744913822,null],[1744913823,null],[1744913824,null],[1744913825,null],[1744913826,null],[1744913827,null],[1744913828,null],[1744913829,null],[1744913830,null],[1744913831,null],[1744913832,null]]);
  684. var responsetimepercentilesovertimeokPercentilesChart = new Highcharts.StockChart({
  685. chart: {
  686. renderTo: 'responsetimepercentilesovertimeokPercentilesContainer',
  687. zoomType: 'x',
  688. marginBottom: 60
  689. },
  690. colors: ['#c4fd90', '#7ff77f', '#6ff2ad', '#61ede6', '#58c7e0', '#4ea1d4', '#487ad9', '#3f52cc', '#7335dc', '#c73905', '#FFA900'],
  691. credits: { enabled: false },
  692. legend: {
  693. enabled: true,
  694. floating: true,
  695. y: -65,
  696. borderWidth: 0,
  697. itemStyle: { fontWeight: "normal" },
  698. symbolRadius: 0
  699. },
  700. title: { text: 'A title to let highcharts reserve the place for the title set later' },
  701. navigator: {
  702. maskInside: false,
  703. baseSeries: 9
  704. },
  705. rangeSelector: {
  706. rangeSelector: { align: "left" },
  707. buttonSpacing: 0,
  708. buttonTheme: {
  709. fill: '#CFC9C6',
  710. padding: 1,
  711. stroke: '#000000',
  712. 'stroke-width': 0.25,
  713. style: {
  714. color: '#000000',
  715. fontWeight: 'bold',
  716. },
  717. states: {
  718. stroke: '#92918C',
  719. 'stroke-width': 0.25,
  720. hover: {
  721. fill: '#92918C',
  722. style: { color: 'black' }
  723. },
  724. select: {
  725. fill: '#FFA900',
  726. style: { color: 'white' }
  727. }
  728. }
  729. },
  730. buttons : [
  731. {
  732. type : 'minute',
  733. count : 1,
  734. text : '1m'
  735. }, {
  736. type : 'minute',
  737. count : 10,
  738. text : '10m'
  739. }, {
  740. type : 'hour',
  741. count : 1,
  742. text : '1h'
  743. }, {
  744. type : 'all',
  745. count : 1,
  746. text : 'All'
  747. }
  748. ],
  749. selected : 3,
  750. inputEnabled : false
  751. },
  752. xAxis: {
  753. type: 'datetime',
  754. ordinal: false,
  755. maxZoom: 10000 // three days
  756. },
  757. yAxis:[
  758. {
  759. min: 0,
  760. title: { text: 'Response Time (ms)' },
  761. opposite: false
  762. }, {
  763. min: 0,
  764. title: {
  765. text: 'Active Users',
  766. style: { color: '#FFA900' }
  767. },
  768. opposite: true
  769. }
  770. ],
  771. plotOptions: {
  772. arearange: { lineWidth: 1 },
  773. series: {
  774. dataGrouping: { enabled: false }
  775. }
  776. },
  777. series: [
  778. {
  779. pointInterval: 1000,
  780. name: 'min',
  781. data: responsetimepercentilesovertimeokPercentiles[0],
  782. tooltip: { yDecimals: 0, ySuffix: 'ms' },
  783. type : 'area',
  784. yAxis: 0,
  785. zIndex: 10
  786. },
  787. {
  788. pointInterval: 1000,
  789. name: '25%',
  790. data: responsetimepercentilesovertimeokPercentiles[1],
  791. tooltip: { yDecimals: 0, ySuffix: 'ms' },
  792. type : 'area',
  793. yAxis: 0,
  794. zIndex: 9
  795. },
  796. {
  797. pointInterval: 1000,
  798. name: '50%',
  799. data: responsetimepercentilesovertimeokPercentiles[2],
  800. tooltip: { yDecimals: 0, ySuffix: 'ms' },
  801. type : 'area',
  802. yAxis: 0,
  803. zIndex: 8
  804. },
  805. {
  806. pointInterval: 1000,
  807. name: '75%',
  808. data: responsetimepercentilesovertimeokPercentiles[3],
  809. tooltip: { yDecimals: 0, ySuffix: 'ms' },
  810. type : 'area',
  811. yAxis: 0,
  812. zIndex: 7
  813. },
  814. {
  815. pointInterval: 1000,
  816. name: '80%',
  817. data: responsetimepercentilesovertimeokPercentiles[4],
  818. tooltip: { yDecimals: 0, ySuffix: 'ms' },
  819. type : 'area',
  820. yAxis: 0,
  821. zIndex: 6
  822. },
  823. {
  824. pointInterval: 1000,
  825. name: '85%',
  826. data: responsetimepercentilesovertimeokPercentiles[5],
  827. tooltip: { yDecimals: 0, ySuffix: 'ms' },
  828. type : 'area',
  829. yAxis: 0,
  830. zIndex: 5
  831. },
  832. {
  833. pointInterval: 1000,
  834. name: '90%',
  835. data: responsetimepercentilesovertimeokPercentiles[6],
  836. tooltip: { yDecimals: 0, ySuffix: 'ms' },
  837. type : 'area',
  838. yAxis: 0,
  839. zIndex: 4
  840. },
  841. {
  842. pointInterval: 1000,
  843. name: '95%',
  844. data: responsetimepercentilesovertimeokPercentiles[7],
  845. tooltip: { yDecimals: 0, ySuffix: 'ms' },
  846. type : 'area',
  847. yAxis: 0,
  848. zIndex: 3
  849. },
  850. {
  851. pointInterval: 1000,
  852. name: '99%',
  853. data: responsetimepercentilesovertimeokPercentiles[8],
  854. tooltip: { yDecimals: 0, ySuffix: 'ms' },
  855. type : 'area',
  856. yAxis: 0,
  857. zIndex: 2
  858. },
  859. {
  860. pointInterval: 1000,
  861. name: 'max',
  862. data: responsetimepercentilesovertimeokPercentiles[9],
  863. tooltip: { yDecimals: 0, ySuffix: 'ms' },
  864. type : 'area',
  865. yAxis: 0,
  866. zIndex: 1
  867. },
  868. allUsersData
  869. ]
  870. });
  871. responsetimepercentilesovertimeokPercentilesChart.setTitle({
  872. text: '<span class="chart_title chart_title_">Response Time Percentiles over Time (OK)</span>',
  873. useHTML: true
  874. });
  875. var requests = unpack([[1744913729,[2192,2192,0]],[1744913730,[1775,1725,50]],[1744913731,[5196,719,4477]],[1744913732,[3562,474,3088]],[1744913733,[4882,535,4347]],[1744913734,[5954,41,5913]],[1744913735,[1693,121,1572]],[1744913736,[1198,144,1054]],[1744913737,[1905,495,1410]],[1744913738,[2442,620,1822]],[1744913739,[1818,537,1281]],[1744913740,[2697,927,1770]],[1744913741,[969,373,596]],[1744913742,[213,137,76]],[1744913743,[36,25,11]],[1744913744,[27,22,5]],[1744913745,[114,83,31]],[1744913746,[246,181,65]],[1744913747,[249,193,56]],[1744913748,[114,93,21]],[1744913749,[60,48,12]],[1744913750,[156,133,23]],[1744913751,[147,119,28]],[1744913752,[138,123,15]],[1744913753,[267,236,31]],[1744913754,[321,297,24]],[1744913755,[468,369,99]],[1744913756,[381,298,83]],[1744913757,[231,198,33]],[1744913758,[210,163,47]],[1744913759,[141,123,18]],[1744913760,[153,129,24]],[1744913761,[111,102,9]],[1744913762,[87,85,2]],[1744913763,[99,97,2]],[1744913764,[117,111,6]],[1744913765,[213,205,8]],[1744913766,[117,112,5]],[1744913767,[140,134,6]],[1744913768,[76,73,3]],[1744913769,[63,62,1]],[1744913770,[36,34,2]],[1744913771,[48,45,3]],[1744913772,[48,46,2]],[1744913773,[27,27,0]],[1744913774,[24,23,1]],[1744913775,[6,5,1]],[1744913776,[9,9,0]],[1744913777,[6,6,0]],[1744913778,[0,0,0]],[1744913779,[3,3,0]],[1744913780,[3,3,0]],[1744913781,[0,0,0]],[1744913782,[3,3,0]],[1744913783,[0,0,0]],[1744913784,[0,0,0]],[1744913785,[0,0,0]],[1744913786,[0,0,0]],[1744913787,[0,0,0]],[1744913788,[3,3,0]],[1744913789,[2,2,0]],[1744913790,[1,1,0]],[1744913791,[0,0,0]],[1744913792,[3,3,0]],[1744913793,[0,0,0]],[1744913794,[0,0,0]],[1744913795,[0,0,0]],[1744913796,[0,0,0]],[1744913797,[0,0,0]],[1744913798,[0,0,0]],[1744913799,[0,0,0]],[1744913800,[0,0,0]],[1744913801,[0,0,0]],[1744913802,[0,0,0]],[1744913803,[0,0,0]],[1744913804,[0,0,0]],[1744913805,[0,0,0]],[1744913806,[0,0,0]],[1744913807,[0,0,0]],[1744913808,[0,0,0]],[1744913809,[0,0,0]],[1744913810,[0,0,0]],[1744913811,[0,0,0]],[1744913812,[0,0,0]],[1744913813,[0,0,0]],[1744913814,[0,0,0]],[1744913815,[0,0,0]],[1744913816,[0,0,0]],[1744913817,[0,0,0]],[1744913818,[0,0,0]],[1744913819,[0,0,0]],[1744913820,[0,0,0]],[1744913821,[0,0,0]],[1744913822,[0,0,0]],[1744913823,[0,0,0]],[1744913824,[0,0,0]],[1744913825,[0,0,0]],[1744913826,[0,0,0]],[1744913827,[0,0,0]],[1744913828,[0,0,0]],[1744913829,[0,0,0]],[1744913830,[0,0,0]],[1744913831,[0,0,0]],[1744913832,[0,0,0]]]);
  876. var requestsChart = new Highcharts.StockChart({
  877. chart: {
  878. renderTo: 'requests',
  879. zoomType: 'x',
  880. marginBottom: 60
  881. },
  882. credits: { enabled: false },
  883. legend: {
  884. enabled: true,
  885. floating: true,
  886. y: -65,
  887. borderWidth: 0,
  888. itemStyle: { fontWeight: "normal" },
  889. symbolRadius: 0
  890. },
  891. title: { text: 'A title to let highcharts reserve the place for the title set later' },
  892. navigator: {
  893. maskInside: false
  894. },
  895. rangeSelector: {
  896. buttonSpacing: 0,
  897. buttonTheme: {
  898. fill: '#CFC9C6',
  899. padding: 1,
  900. stroke: '#000000',
  901. 'stroke-width': 0.25,
  902. style: {
  903. color: '#000000',
  904. fontWeight: 'bold',
  905. },
  906. states: {
  907. stroke: '#000000',
  908. 'stroke-width': 0.25,
  909. hover: {
  910. fill: '#92918C',
  911. style: { color: 'black' }
  912. },
  913. select: {
  914. fill: '#FFA900',
  915. style: { color: 'white' }
  916. }
  917. }
  918. },
  919. buttons : [
  920. {
  921. type : 'minute',
  922. count : 1,
  923. text : '1m'
  924. }, {
  925. type : 'minute',
  926. count : 10,
  927. text : '10m'
  928. }, {
  929. type : 'hour',
  930. count : 1,
  931. text : '1h'
  932. }, {
  933. type : 'all',
  934. count : 1,
  935. text : 'All'
  936. }
  937. ],
  938. selected : 3,
  939. inputEnabled : false
  940. },
  941. plotOptions: {
  942. series: {
  943. dataGrouping: { enabled: false }
  944. },
  945. area: {
  946. stacking: 'normal'
  947. }
  948. },
  949. xAxis: {
  950. type: 'datetime',
  951. ordinal: false,
  952. maxZoom: 10000 // three days
  953. },
  954. yAxis:[
  955. {
  956. min: 0,
  957. title: { text: 'Number of requests' },
  958. opposite: false,
  959. reversedStacks: false
  960. }, {
  961. min: 0,
  962. title: {
  963. text: 'Active Users',
  964. style: { color: '#FFA900' }
  965. },
  966. opposite: true
  967. }
  968. ],
  969. series: [
  970. {
  971. color: '#5E7BE2',
  972. name: 'All',
  973. data: requests[0],
  974. tooltip: { yDecimals: 0, ySuffix: '', valueDecimals: 0 }
  975. ,type: 'area'},
  976. allUsersData
  977. ]
  978. });
  979. requestsChart.setTitle({
  980. text: '<span class="chart_title">Number of requests per second</span>',
  981. useHTML: true
  982. });
  983. var responses = unpack([[1744913729,[0,0,0]],[1744913730,[1,1,0]],[1744913731,[12,12,0]],[1744913732,[57,57,0]],[1744913733,[141,141,0]],[1744913734,[9,9,0]],[1744913735,[169,169,0]],[1744913736,[4257,153,4104]],[1744913737,[4479,757,3722]],[1744913738,[3102,1071,2031]],[1744913739,[3281,646,2635]],[1744913740,[2883,1172,1711]],[1744913741,[1823,375,1448]],[1744913742,[283,230,53]],[1744913743,[322,322,0]],[1744913744,[444,444,0]],[1744913745,[578,577,1]],[1744913746,[485,484,1]],[1744913747,[308,308,0]],[1744913748,[138,138,0]],[1744913749,[179,125,54]],[1744913750,[219,121,98]],[1744913751,[154,117,37]],[1744913752,[139,102,37]],[1744913753,[164,164,0]],[1744913754,[167,166,1]],[1744913755,[292,257,35]],[1744913756,[248,240,8]],[1744913757,[199,195,4]],[1744913758,[233,225,8]],[1744913759,[183,160,23]],[1744913760,[244,179,65]],[1744913761,[366,203,163]],[1744913762,[252,132,120]],[1744913763,[298,212,86]],[1744913764,[302,197,105]],[1744913765,[366,191,175]],[1744913766,[179,157,22]],[1744913767,[213,177,36]],[1744913768,[144,127,17]],[1744913769,[142,125,17]],[1744913770,[120,75,45]],[1744913771,[853,76,777]],[1744913772,[3018,78,2940]],[1744913773,[2970,97,2873]],[1744913774,[2815,73,2742]],[1744913775,[750,69,681]],[1744913776,[125,67,58]],[1744913777,[89,60,29]],[1744913778,[73,54,19]],[1744913779,[69,60,9]],[1744913780,[90,65,25]],[1744913781,[95,50,45]],[1744913782,[114,61,53]],[1744913783,[72,59,13]],[1744913784,[66,52,14]],[1744913785,[111,53,58]],[1744913786,[103,52,51]],[1744913787,[52,40,12]],[1744913788,[68,50,18]],[1744913789,[71,57,14]],[1744913790,[51,43,8]],[1744913791,[93,75,18]],[1744913792,[64,46,18]],[1744913793,[72,45,27]],[1744913794,[77,63,14]],[1744913795,[68,61,7]],[1744913796,[78,70,8]],[1744913797,[260,106,154]],[1744913798,[307,92,215]],[1744913799,[232,121,111]],[1744913800,[243,105,138]],[1744913801,[108,74,34]],[1744913802,[57,45,12]],[1744913803,[35,34,1]],[1744913804,[28,28,0]],[1744913805,[41,37,4]],[1744913806,[21,17,4]],[1744913807,[27,18,9]],[1744913808,[27,19,8]],[1744913809,[9,8,1]],[1744913810,[23,21,2]],[1744913811,[22,18,4]],[1744913812,[15,11,4]],[1744913813,[18,9,9]],[1744913814,[7,2,5]],[1744913815,[14,2,12]],[1744913816,[1,0,1]],[1744913817,[7,3,4]],[1744913818,[2,2,0]],[1744913819,[2,1,1]],[1744913820,[1,1,0]],[1744913821,[5,3,2]],[1744913822,[0,0,0]],[1744913823,[0,0,0]],[1744913824,[1,0,1]],[1744913825,[1,0,1]],[1744913826,[0,0,0]],[1744913827,[1,0,1]],[1744913828,[1,0,1]],[1744913829,[1,1,0]],[1744913830,[0,0,0]],[1744913831,[0,0,0]],[1744913832,[1,0,1]]]);
  984. var requestsChart = new Highcharts.StockChart({
  985. chart: {
  986. renderTo: 'responses',
  987. zoomType: 'x',
  988. marginBottom: 60
  989. },
  990. credits: { enabled: false },
  991. legend: {
  992. enabled: true,
  993. floating: true,
  994. y: -65,
  995. borderWidth: 0,
  996. itemStyle: { fontWeight: "normal" },
  997. symbolRadius: 0
  998. },
  999. title: { text: 'A title to let highcharts reserve the place for the title set later' },
  1000. navigator: {
  1001. maskInside: false
  1002. },
  1003. rangeSelector: {
  1004. buttonSpacing: 0,
  1005. buttonTheme: {
  1006. fill: '#CFC9C6',
  1007. padding: 1,
  1008. stroke: '#000000',
  1009. 'stroke-width': 0.25,
  1010. style: {
  1011. color: '#000000',
  1012. fontWeight: 'bold',
  1013. },
  1014. states: {
  1015. stroke: '#000000',
  1016. 'stroke-width': 0.25,
  1017. hover: {
  1018. fill: '#92918C',
  1019. style: { color: 'black' }
  1020. },
  1021. select: {
  1022. fill: '#FFA900',
  1023. style: { color: 'white' }
  1024. }
  1025. }
  1026. },
  1027. buttons : [
  1028. {
  1029. type : 'minute',
  1030. count : 1,
  1031. text : '1m'
  1032. }, {
  1033. type : 'minute',
  1034. count : 10,
  1035. text : '10m'
  1036. }, {
  1037. type : 'hour',
  1038. count : 1,
  1039. text : '1h'
  1040. }, {
  1041. type : 'all',
  1042. count : 1,
  1043. text : 'All'
  1044. }
  1045. ],
  1046. selected : 3,
  1047. inputEnabled : false
  1048. },
  1049. plotOptions: {
  1050. series: {
  1051. dataGrouping: { enabled: false }
  1052. },
  1053. area: {
  1054. stacking: 'normal'
  1055. }
  1056. },
  1057. xAxis: {
  1058. type: 'datetime',
  1059. ordinal: false,
  1060. maxZoom: 10000 // three days
  1061. },
  1062. yAxis:[
  1063. {
  1064. min: 0,
  1065. title: { text: 'Number of responses' },
  1066. opposite: false,
  1067. reversedStacks: false
  1068. }, {
  1069. min: 0,
  1070. title: {
  1071. text: 'Active Users',
  1072. style: { color: '#FFA900' }
  1073. },
  1074. opposite: true
  1075. }
  1076. ],
  1077. series: [
  1078. {
  1079. color: '#5E7BE2',
  1080. name: 'All',
  1081. data: responses[0],
  1082. tooltip: { yDecimals: 0, ySuffix: '', valueDecimals: 0 }
  1083. },
  1084. {
  1085. color: '#68b65c',
  1086. name: 'OK',
  1087. data: responses[1],
  1088. tooltip: { yDecimals: 0, ySuffix: '', valueDecimals: 0 }
  1089. ,type: 'area'},
  1090. {
  1091. color: '#f15b4f',
  1092. name: 'KO',
  1093. data: responses[2],
  1094. tooltip: { yDecimals: 0, ySuffix: '', valueDecimals: 0 }
  1095. ,type: 'area'},
  1096. allUsersData,
  1097. {
  1098. type: 'pie',
  1099. name: 'Distribution',
  1100. data: [
  1101. {name: 'OK', y: 13067.0, color: '#68b65c'},{name: 'KO', y: 28133.0, color: '#f15b4f'}
  1102. ],
  1103. center: [775, -40],
  1104. size: 70,
  1105. showInLegend: false,
  1106. dataLabels: { enabled: false },
  1107. dataGrouping: { enabled: false }
  1108. }
  1109. ]
  1110. });
  1111. requestsChart.setTitle({
  1112. text: '<span class="chart_title">Number of responses per second</span>',
  1113. useHTML: true
  1114. });
  1115. });
  1116. </script>
  1117. </div>
  1118. </body>
  1119. </html>