Skip to content

Commit 0184090

Browse files
Andrei MaletsAndrei_Malets
authored andcommitted
MAGETWO-72076: Update benchmark.jmx and README files in Performance Toolkit, add performance analytics script
- Coding style fixes
1 parent 56d05da commit 0184090

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

setup/performance-toolkit/aggregate-report/b2c_mappings.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?php
2-
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
36
$mapping = [
47
[
58
'label' => 'Open Home Page',
@@ -580,7 +583,8 @@
580583
],
581584
[
582585
'label' => 'Admin - Save New Configurable Product',
583-
'uri' => '\/admin\/catalog\/product\/save\/set\/4\/type\/configurable\/back\/edit\/active_tab\/product-details\/',
586+
'uri' => '\/admin\/catalog\/product\/save\/set\/4\/type\/configurable'
587+
. '\/back\/edit\/active_tab\/product-details\/',
584588
'title' => 'Admin Create Product - New Configurable Product Save',
585589
'scenario' => 'Admin - Create Product',
586590
],
@@ -610,7 +614,8 @@
610614
],
611615
[
612616
'label' => 'Admin - Save New Downloadable Product',
613-
'uri' => '\/admin\/catalog\/product\/save\/set\/4\/type\/downloadable\/back\/edit\/active_tab\/product-details\/',
617+
'uri' => '\/admin\/catalog\/product\/save\/set\/4\/type\/downloadable'
618+
. '\/back\/edit\/active_tab\/product-details\/',
614619
'title' => 'Admin Create Product - New Downloadable Product Save',
615620
'scenario' => 'Admin - Create Product',
616621
],
@@ -700,7 +705,8 @@
700705
],
701706
[
702707
'label' => 'Admin - Create New Condition For Promotion Rule',
703-
'uri' => '\/admin\/sales_rule\/promo_quote\/newConditionHtml\/form\/sales_rule_formrule_conditions_fieldset_\/form_namespace\/sales_rule_form',
708+
'uri' => '\/admin\/sales_rule\/promo_quote\/newConditionHtml\/form\/sales_rule_formrule_conditions_fieldset_'
709+
. '\/form_namespace\/sales_rule_form',
704710
'title' => 'Admin Promotions Management - Create New Conditional',
705711
'scenario' => 'Admin - Promotion Rules',
706712
],
@@ -776,4 +782,4 @@
776782
'title' => 'Admin Edit Order - Search Orders$',
777783
'scenario' => 'Admin - Create/Process Returns',
778784
],
779-
];
785+
];

setup/performance-toolkit/aggregate-report/generate.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
/**
8+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
9+
* @SuppressWarnings(PHPMD.NPathComplexity)
10+
*/
11+
712
$usageMessage =
813
'Usage:' . PHP_EOL
914
. ' php generate.php -j jmeter_report.jtl -m memory_usage.log -o output_file.csv' . PHP_EOL
@@ -286,9 +291,9 @@ function calculate_percentile(array $arr, $percentile)
286291
$allindex = ($count - 1) * $percentile;
287292
$intvalindex = intval($allindex);
288293
$floatval = $allindex - $intvalindex;
289-
if (!is_float($floatval)){
294+
if (!is_float($floatval)) {
290295
$result = $arr[$intvalindex];
291-
}else {
296+
} else {
292297
if ($count > $intvalindex + 1) {
293298
$result = $floatval * ($arr[$intvalindex + 1] - $arr[$intvalindex]) + $arr[$intvalindex];
294299
} else {

0 commit comments

Comments
 (0)