Giter Site home page Giter Site logo

wpperf's Introduction

There is an WooCommerce docker image. You can run it as you want, but it's better to use WSP AWS (https://wsp-aws.io).

How to use the stress test

Execute docker run -i grafana/k6 -e DOMAIN_NAME="<WooCommerceDomainName>" run github.com/wspaws/woocommerce/stress-test-k6.js.

Notes:

  • git clone is not required
  • if DOMAIN_NAME is IDN please use punycode

If you'd like to modify the script and run it locally, use the following command: docker run -i grafana/k6 -e DOMAIN_NAME="<WooCommerceDomainName>" run - <stress-test-k6.js

If you'd like to monitor how the stress test is going, we'd recommend the following useful set of preconfigured software:

  1. git clone https://github.com/luketn/docker-k6-grafana-influxdb.git
  2. cd docker-k6-grafana-influxdb
  3. docker-compose up -d influxdb grafana
  4. docker-compose run k6 -e DOMAIN_NAME="<WooCommerceDomainName>" run github.com/wspaws/woocommerce/stress-test-k6.js
  5. see results in your web browser via http://localhost:3000/d/k6/k6-load-testing-results

Configuration variables

You can also use the following configuration variables:

  1. USERS - the start number of simultaneously walking users (i.e. the number of workers). Default is 10. On the second phase there will be twice more users and the third phase runs triple amount of users.
  2. PHASE_DURATION - the phase duration in minutes. Default is 20, so the whole test will take up to 72 minutes (see the source code for explanation)

Example: docker run -i grafana/k6 -e DOMAIN_NAME="my-woo-commerce.example.com" -e USERS=10 -e PHASE_DURATION=20 run github.com/wspaws/woocommerce/stress-test-k6.js

wpperf's People

Contributors

alfemys avatar

Watchers

Aleksander Prikhozhdenko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.