天天看點

使用JMeter + Badboy 測試基于事務粒度的性能測試

 The following 4 <b>transaction based</b> performance result is done by <b>JMeter</b>+<b>Badboy</b> tool.

Support the <b>scenario</b> is as follows:

<b>Guest view products in estore -&gt; Guest Add item to shopping cart -&gt; Guest check out -&gt; Guest register his/her account-&gt;Guest login with his/her account -&gt; Guest choose shipping method-&gt;Guest set shipping address-&gt;Guest set payment method-&gt;Guest finish checkout-&gt;System generate order no.</b>

<b></b>

<b> </b>

We can use <b>badboy</b> to <b>record the script</b> to imitate this scenario and <b>export to JMeter format</b> ,and <b>JMeter</b> can use this script to <b>run performance test</b>.

<b>TC1-&gt;Ecshop Guest Checkout Transaction (100 users /500 transactions)</b>

<a href="http://blog.51cto.com/attachment/201204/164105311.png" target="_blank"></a>

<b>TC2-&gt;Ecshop Guest Checkout Transaction (100 users/5000 transactions)</b>

<a href="http://blog.51cto.com/attachment/201204/164116636.png" target="_blank"></a>

<b>TC3-&gt;Magento Guest Checkout Transaction (100 users /500 transactions)</b>

<a href="http://blog.51cto.com/attachment/201204/164125263.png" target="_blank"></a>

<b>TC4-&gt;Magento Guest Checkout Transaction(100users/ 5000 transactions)</b>

<a href="http://blog.51cto.com/attachment/201204/164135495.png" target="_blank"></a>

<b>The following is the conclusion:</b>

<b>(1)    </b><b>Ecshop can support 100 users/ 5000 transaction very well, because Error%=0</b>

<b>(2)    </b><b>Magento can’t support 100 users/5000 transactions ,even can’t support 100 users/500 transactions ,Error% in average is larger than 60%</b>

<b>(3)    </b><b>Login Page/Item Detail Page/Shopping Cart Page ,the request to these three pages in the whole transactions has low pressure ,because their Error% is less than 2%.</b>

<b>(4)    </b><b>Begin Checkout /End Checkout page has medium pressure ,because their Error% is 17%, neither too high nor too low.</b>

<b>(5)    </b><b>Shipping Method /Shipping Address/Billing Method has high pressure ,because their Error% is larger than 98%</b>

<b>(6)    </b><b>To this Transaction-related cases ,500 transactions/5000 transactions has almost the same pressure ,because system can utilize the load (62.79% vs 61.07%)</b>

Best Regards,

Charles (Canton team)

Senior Software Engineer

本文轉自 charles_wang888 51CTO部落格,原文連結:http://blog.51cto.com/supercharles888/834313,如需轉載請自行聯系原作者

繼續閱讀