From 5147d601e369b09188f21882668128b1042e7c3e Mon Sep 17 00:00:00 2001 From: Ludek <13610612+ludeknovy@users.noreply.github.com> Date: Sat, 13 Mar 2021 00:13:10 +0100 Subject: [PATCH] minimum response times detail (#114) --- src/app/item-detail/item-detail.component.html | 18 ++++++++++++------ src/app/item-detail/item-detail.component.scss | 1 - src/app/item-detail/item-detail.component.ts | 14 +++++++++++++- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/app/item-detail/item-detail.component.html b/src/app/item-detail/item-detail.component.html index 46be9c22..9826593e 100644 --- a/src/app/item-detail/item-detail.component.html +++ b/src/app/item-detail/item-detail.component.html @@ -107,16 +107,22 @@
Performance Analysis
- Slowest responses
+ Slowest 1% of responses
- 1% of slowest responses do not have a significant deviation from the average response + The 1% of the slowest responses do not have a significant deviation from the average response time.
The 1% of response times shows up to {{ perfAnalysis.onePerc.value }}x slower response times than the - average. This might mean a performance issue for some clients and indicates that SUT might have been - overloaded. + average. This might mean a performance issue for some clients and indicates that SUT was most likely + overloaded. +
+
Labels with the highest difference from the average:
+
+
  • {{_.label}} 1% of the responses were {{_.onePerc}}x slower then the average. The 1% of the response time were {{_.p99}}ms and slower, while the average was {{_.avgResponseTime}}ms.
  • +
    +
    @@ -129,9 +135,9 @@
    Performance Analysis
    {{perfAnalysis.variability.value}}x). The SUT might have been overloaded.
    -
    Labels with highest variability:
    +
    Labels with the highest variability:
    -
  • {{_.label}} shows {{_.variability}}x variability, while the minimum reponse time measured was {{_.minResponseTime}}ms and the average {{_.avgResponseTime}}ms.
  • +
  • {{_.label}} shows {{_.variability}}x variability. The minimum reponse time measured was {{_.minResponseTime}}ms and the average {{_.avgResponseTime}}ms.
  • diff --git a/src/app/item-detail/item-detail.component.scss b/src/app/item-detail/item-detail.component.scss index 63b82804..cc4fa01d 100644 --- a/src/app/item-detail/item-detail.component.scss +++ b/src/app/item-detail/item-detail.component.scss @@ -277,7 +277,6 @@ thead .hd { .btn-link-custom { font-size: 0.775rem; padding: 0; - padding-bottom: 1px; border-radius: 0.2rem; } diff --git a/src/app/item-detail/item-detail.component.ts b/src/app/item-detail/item-detail.component.ts index 7b33d41e..669278aa 100644 --- a/src/app/item-detail/item-detail.component.ts +++ b/src/app/item-detail/item-detail.component.ts @@ -77,6 +77,7 @@ export class ItemDetailComponent implements OnInit { }; toggleThroughputBandFlag = false; folded = 'closed'; + foldedBottom = 'closed'; constructor( @@ -281,6 +282,7 @@ export class ItemDetailComponent implements OnInit { onePerc, minResponseTime: _.minResponseTime, avgResponseTime: _.avgResponseTime, + p99: _.n9, label: _.label }); }); @@ -299,7 +301,8 @@ export class ItemDetailComponent implements OnInit { onePerc: { value: onePercSorted[0].onePerc, avgResponseTime: onePercSorted[0].onePerc.avgResponseTime, - failed: onePercSorted[0].onePerc > 2.5 + failed: onePercSorted[0].onePerc > 2.5, + failingLabels: onePercSorted.filter(_ => _.onePerc > 2.5) }, throughputVariability: this.calculateThroughputVariability() }; @@ -382,6 +385,15 @@ export class ItemDetailComponent implements OnInit { } this.folded = 'open'; element.textContent = 'Show less'; + } + toggleFoldBottom(element) { + if (this.foldedBottom === 'open') { + this.foldedBottom = 'closed'; + element.textContent = 'Show more'; + return; + } + this.foldedBottom = 'open'; + element.textContent = 'Show less'; } }