Understand and Improve your Website Speed

Get insights with modern charts and user experience metrics.
Test your website every hour & Compare with previous runs or competitors.

In order to make sure that your application will not break under a heavy load, a web application owner has to perform some basic performance tests.

Here are 4 simple steps how to achieve this with LoadFocus load testing tool:

  1. Log into your account on the LoadFocus platform
  2. Click on the “New Load Test” menu
  3. Enter the details of your web application (the endpoint/URL that you want to access, the number of clients per second and the number of seconds that the test will run) – check image attached for an example
  4. Before starting the test log into your server and use the script that we provide for monitoring the CPU and memory as below (the script is developed for Linux servers):
    1. copy the script cpu_mem_stats.sh to the server where your application is installed: click here to download script.
    2. run the following command:
      chmod 777 cpu_mem_stats.sh
    3. run the following command:
      ./cpu_mem_stats.sh -p node -t 200 -f /home/ubuntu/log.txt -c true
    4. the meaning of the parameters is (please modify according to your needs):
    • -p – The process name to look for
    • -t – The time to monitor specified in seconds
    • -f – path to the file to write the output (if not specified the output will be logged into the console)
    • -c – if specified as true will output in CSV format
    1. Start your load test from LoadFocus.com
    2. The result of the response times will give you a graph like this:
    3. After the test ends get the result from the stats test on your server (in our example log.txt)
    4. For creating the graphs from the result files we recommend the following online solution: https://plot.ly/ . From that you will get a graph similar to:
    5. Now by using the graphs from LoadFocus.com and the results from the cpu_mem_stats.sh you can correlate how you server is behaving under load, which will give you an idea if the machine needs to be upgraded or is enough to support the load your clients will generate.

How Much Traffic Can Your Website Handle?