Sean Conklin, WooCommerce Developer, Sean@CodedCommerce.com, (818) 835-5960

Load testing WooCommerce orders

07/25/2018
Load testing WooCommerce orders

In this video I demonstrate a basic load test of WooCommerce orders using the ReST API and artillery.io

I ran this test against a nano sized development server at Linode set-up with Ubuntu 18.04.1 LTS running PHP v7.2 (fpm), NginX v1.14, MariaDB v10.1 and PHP-Redis v4. See server set-up instructions.

Test resulted with a 100% success rate for 159 orders over 30 seconds, ramping up from 1 virtual user per second to 10. Median response rate was 9.69 seconds.

This load test was low-medium scale. I recommend starting slowly about 1 virtual user per second for 10 seconds, then stepping up to higher load levels as each proves successful.

Never load test on a live site, and always be prepared to clean-up test data that gets generated. Also, be mindful of emails or any integrations that your store may have so you don’t overwhelm those services.

Beyond this basic load test, the next step up will be a more synthetic load test utilizing JavaScript and placing test mode credit card purchases with a real or simulated browser environments. Running the test from multiple nodes in multiple locations is another goal.

It’s a great idea to have New Relic APM running on the server being tested so you can uncover any performance bottlenecks related to your plugins or data.

Pro tip: Pantheon.io bundles New Relic APM for all Performance hosting plans starting at $125/mo.

Share this

  • Mail
  • Facebook
  • LinkedIn
  • Reddit
  • Twitter

Need help?

  • Contact us

Blog Categories

  • Events (11)
  • Marketing tips (25)
  • Official blog reposts (10)
  • Popular (10)
  • Technical tips (55)
  • Videos (12)

Code Categories

  • Back-end code snippets 6060 products
  • Cart 2020 products
  • Checkout 2121 products
  • Elementor code snippets 88 products
  • Front-end code snippets 144144 products
  • JetPack code snippets 44 products
  • Navigation menus 22 products
  • Official extension related 2626 products
  • Payments 66 products
  • Product pages 2323 products
  • Search 77 products
  • Shop and product categories 1515 products
  • Sitewide 3838 products
  • Storefront code snippets 1717 products
  • Useful functions and libraries 55 products
  • User accounts 2323 products
  • WooCommerce Code Snippets 226226 products

  • Home
  • Blog
  • Code
  • Contact
  • My account
  • Privacy policy

Copyright © 2018-2022 Coded Commerce, LLC.
Automattic Inc. owns and oversees the trademarks for Woo™ and WooCommerce®.