Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
Sample Title
DevelopersParadise
2016 / Opatija / Croatia
Magento 2 performance comparison in different
environments
DevelopersParadise
2016 / Opatija / Croatia
Hardware configuration and software
• Gatling
• Docker
• M2 Custom Sample Data ...
DevelopersParadise
2016 / Opatija / Croatia
Yaroslav Rogoza
CTO - Atwix
DevelopersParadise
2016 / Opatija / Croatia
Fixing a bad (slow) code
Software tweaks
Hardware changes
DevelopersParadise
2016 / Opatija / Croatia
Bad code
<?php $giftcardProducts = Mage::getModel("catalog/product")-
>getColl...
DevelopersParadise
2016 / Opatija / Croatia
Software Tweaks
[Here should be some funny picture]
DevelopersParadise
2016 / Opatija / Croatia
Emulation steps
1. Visit Home Page ->
2. Visit Woman Pants category ->
3. Visi...
DevelopersParadise
2016 / Opatija / Croatia
Standard sample data, SSD
Standard sample data:1 customer, 2k products, 40 cat...
DevelopersParadise
2016 / Opatija / Croatia
Bottlenecks
• Configurable::getUsedProducts
• Configurable::getConfigurableAttrib...
DevelopersParadise
2016 / Opatija / Croatia
Standard sample data, SSD
Standard sample data:1 customer, 2k products, 40 cat...
DevelopersParadise
2016 / Opatija / Croatia
Standard sample data, HDD
Standard sample data:1 customer, 2k products, 40 cat...
DevelopersParadise
2016 / Opatija / Croatia
Standard sample data, SSD
Standard sample data:1 customer, 2k products, 40 cat...
DevelopersParadise
2016 / Opatija / Croatia
Standard sample data + additional customers
2k products, 40 categories, 400k c...
DevelopersParadise
2016 / Opatija / Croatia
Many customers + Redis backend cache
2k products, 40 categories, 400k customer...
DevelopersParadise
2016 / Opatija / Croatia
Many customers + many products
600k products, 40 categories, 400k customers
Ho...
DevelopersParadise
2016 / Opatija / Croatia
Many customers and products + Redis
600k products, 40 categories, 400k custome...
DevelopersParadise
2016 / Opatija / Croatia
Many customers and products, disk cache
600k products, 40 categories, 400k cus...
DevelopersParadise
2016 / Opatija / Croatia
Many customers and products, Redis cache
600k products, 40 categories, 400k cu...
DevelopersParadise
2016 / Opatija / Croatia
Many customers and products, MariaDB
600k products, 40 categories, 400k custom...
DevelopersParadise
2016 / Opatija / Croatia
What else?
DevelopersParadise
2016 / Opatija / Croatia
Many customers and products, DB replication
600k products, 40 categories, 400k...
DevelopersParadise
2016 / Opatija / Croatia
What else?
PHP7!
DevelopersParadise
2016 / Opatija / Croatia
Many customers and products, PHP 7.0
Home Page
Woman Pants category
Overnight ...
DevelopersParadise
2016 / Opatija / Croatia
Links
• Gatling scenario https://github.com/Atwix/gatling-m2-
benchmark
• M2 s...
DevelopersParadise
2016 / Opatija / Croatia
Thank You!
@rogyar enarc@atwix.com
Nächste SlideShare
Wird geladen in …5
×

Magento 2 performance comparison in different environments by Yaroslav Rogoza from Atwix

693 Aufrufe

Veröffentlicht am

Magento 2 performance comparison in different environments by Yaroslav Rogoza from Atwix

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

  • Gehören Sie zu den Ersten, denen das gefällt!

Magento 2 performance comparison in different environments by Yaroslav Rogoza from Atwix

  1. 1. Sample Title DevelopersParadise 2016 / Opatija / Croatia Magento 2 performance comparison in different environments
  2. 2. DevelopersParadise 2016 / Opatija / Croatia Hardware configuration and software • Gatling • Docker • M2 Custom Sample Data generator Tools used in benchmark: Hardware configuration: • Intel® Core™ i7-6700, 64 GB DDR4 RAM, 2 x 250 GB SATA 6 Gb/s SSD • Intel® Core™ i7-6700, 64 GB DDR4 RAM, 2 TB SATA 4 Gb/s Enterprise Hard Drive
  3. 3. DevelopersParadise 2016 / Opatija / Croatia Yaroslav Rogoza CTO - Atwix
  4. 4. DevelopersParadise 2016 / Opatija / Croatia Fixing a bad (slow) code Software tweaks Hardware changes
  5. 5. DevelopersParadise 2016 / Opatija / Croatia Bad code <?php $giftcardProducts = Mage::getModel("catalog/product")- >getCollection();
 foreach ($giftcardProducts as $giftProduct) {
 $product = Mage::getModel("catalog/product")- >load($giftProduct->getId()); ?>
 . . .
  6. 6. DevelopersParadise 2016 / Opatija / Croatia Software Tweaks [Here should be some funny picture]
  7. 7. DevelopersParadise 2016 / Opatija / Croatia Emulation steps 1. Visit Home Page -> 2. Visit Woman Pants category -> 3. Visit Overnight Duffle product -> 4. Add to cart Overnight Duffle product -> 5. Search for “band” keyword -> 6. Go to login page -> 7. Log in -> 8. Go to My Account page
  8. 8. DevelopersParadise 2016 / Opatija / Croatia Standard sample data, SSD Standard sample data:1 customer, 2k products, 40 categories Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading time (ms.) 0.00 1000.00 2000.00 3000.00 4000.00 1275 1207 418 3257 453 829 3834 1928
  9. 9. DevelopersParadise 2016 / Opatija / Croatia Bottlenecks • Configurable::getUsedProducts • Configurable::getConfigurableAttributes • ConfigurableAttributeCollection::_afterLoad
  10. 10. DevelopersParadise 2016 / Opatija / Croatia Standard sample data, SSD Standard sample data:1 customer, 2k products, 40 categories Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading time (ms.) 0.00 1000.00 2000.00 3000.00 4000.00 1275 1207 418 3257 453 829 3834 1928
  11. 11. DevelopersParadise 2016 / Opatija / Croatia Standard sample data, HDD Standard sample data:1 customer, 2k products, 40 categories Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading Time (ms.) 0 1250 2500 3750 5000 1275 1207 418 3257 453 829 3834 1928 1293 1489 470 3618 599 1278 4446 1970 HDD SSD
  12. 12. DevelopersParadise 2016 / Opatija / Croatia Standard sample data, SSD Standard sample data:1 customer, 2k products, 40 categories Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading time (ms.) 0.00 1000.00 2000.00 3000.00 4000.00 1275 1207 418 3257 453 829 3834 1928
  13. 13. DevelopersParadise 2016 / Opatija / Croatia Standard sample data + additional customers 2k products, 40 categories, 400k customers Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading Time (ms.) 0 1000 2000 3000 4000 1275 1207 418 3257 453 829 3834 1928 1392 1350 422 3260 470 830 3837 1933 400k customers 1 customer
  14. 14. DevelopersParadise 2016 / Opatija / Croatia Many customers + Redis backend cache 2k products, 40 categories, 400k customers + Redis as backend cache storage Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading Time (ms.) 0 1000 2000 3000 4000 1396 1349 421 3477 469 956 3955 1915 1392 1350 422 3475 470 953 3970 1933 Disk Redis
  15. 15. DevelopersParadise 2016 / Opatija / Croatia Many customers + many products 600k products, 40 categories, 400k customers Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading Time (ms.) 0 1250 2500 3750 5000 1392 1350 422 3475 470 953 3970 1933 1396 1347 426 4132 521 1002 4943 2013 400k customers 1 customer
  16. 16. DevelopersParadise 2016 / Opatija / Croatia Many customers and products + Redis 600k products, 40 categories, 400k customers + Redis as backend cache storage Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading Time (ms.) 0 1250 2500 3750 5000 1392 1349 422 4129 524 996 4951 1997 1396 1347 426 4132 521 1002 4943 2013 Disk Redis
  17. 17. DevelopersParadise 2016 / Opatija / Croatia Many customers and products, disk cache 600k products, 40 categories, 400k customers + disk cache clean and warmed up Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading Time (ms.) 0 1500 3000 4500 6000 1392 1349 422 4129 524 996 4951 1997 1436 1355 448 4218 522 1194 5161 2107 Warmed Up Clean
  18. 18. DevelopersParadise 2016 / Opatija / Croatia Many customers and products, Redis cache 600k products, 40 categories, 400k customers + Redis and disc cache warmed up Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading Time (ms.) 0 1500 3000 4500 6000 1391 1352 421 4127 523 998 4951 1998 1436 1355 448 4218 522 1194 5161 2107 Disk Redis
  19. 19. DevelopersParadise 2016 / Opatija / Croatia Many customers and products, MariaDB 600k products, 40 categories, 400k customers + MariaDB as DB engine Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading Time (ms.) 0 1250 2500 3750 5000 1391 1352 421 4127 523 998 4951 1998 1391 1362 422 4120 511 987 3112 1994 MariaDB MySQL
  20. 20. DevelopersParadise 2016 / Opatija / Croatia What else?
  21. 21. DevelopersParadise 2016 / Opatija / Croatia Many customers and products, DB replication 600k products, 40 categories, 400k customers + database replication Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading Time (ms.) 0 1250 2500 3750 5000 1391 1352 421 4127 523 998 4951 1998 1383 1339 421 4133 509 1001 4946 1996 Replication No Replication
  22. 22. DevelopersParadise 2016 / Opatija / Croatia What else? PHP7!
  23. 23. DevelopersParadise 2016 / Opatija / Croatia Many customers and products, PHP 7.0 Home Page Woman Pants category Overnight Duffle product Add to cart request Search for 'Band' User log in page User log in process My Account page Loading Time (ms.) 0 1250 2500 3750 5000 1391 1352 421 4127 523 998 4951 1998 803 816 288 2984 313 560 4192 1515 PHP 7 PHP 5.6
  24. 24. DevelopersParadise 2016 / Opatija / Croatia Links • Gatling scenario https://github.com/Atwix/gatling-m2- benchmark • M2 sample data generator https://github.com/Atwix/m2- sampledata-generator
  25. 25. DevelopersParadise 2016 / Opatija / Croatia Thank You! @rogyar enarc@atwix.com

×