Artillery
Announcement

Introducing full AWS Fargate + Playwright support

Hassy VeldstraHassy Veldstra

Today we’re announcing two new features in Artillery.

  1. AWS Fargate support: run distributed serverless load tests from 6 different AWS regions
  2. Playwright support on Fargate: run high scale load tests using real headless browsers

Run distributed tests on AWS Fargate

AWS Fargate is a serverless pay-as-you-go compute platform. Artillery can now make use of Fargate to run distributed load tests from 6 different geographical regions:

  • us-east-1 (N. Virginia)
  • us-west-1 (N. California)
  • eu-west-1 (Ireland)
  • eu-central-1 (Frankfurt)
  • ap-south-1 (Mumbai)
  • ap-northeast-1 (Tokyo)

Your tests will run from your team’s own AWS account and can scale out horizontally. Most existing Artillery test scripts just work with no modifications required, and performance metrics are collected and aggregated automatically.

Companies like Auth0, Amity, and Bedrock run thousands of production-grade load tests with Artillery on Fargate as part of their delivery pipelines.

Unlike existing AWS Lambda support, load tests that run on AWS Fargate have no limitations on running time.

More information

Load test dynamic web apps with Playwright

Playwright is a modern browser automation framework created by Microsoft. We launched initial support for running Playwright scripts as load tests back in late 2021. Artillery can now run Playwright on Fargate to make it possible to run Playwright load tests at scale.

More information

Why load test with real browsers?

Load testing dynamic web apps is difficult. The two common approaches are:

  1. Emulating user activity with HTTP calls to backend APIs
  2. Replaying pre-recorded requests with HAR files

Creating and updating test scripts with those approaches is time-consuming and brittle, and load tests that are run from those scripts usually fail to model realistic traffic patterns. Those approaches are also very backend-focused and do not provide good visibilty into user-perceived performance of the app under load.

With Playwright + AWS Fargate support in Artillery it’s now possible to load tests with real browsers in a way that’s fast, scalable, cost-efficient, and actionable.

More information

Get insights into user-perceived performance

Artillery will track and report Core Web Vitals metrics for each load test. Core Web Vitals provide a way to measure and track user-centric experience of the web app under high load.

The following metrics are tracked for all pages in a test:

  • FID - first input delay - a measurement of interactivity
  • LCP - largest contentful paint - a measurement of loading performance
  • CLS - cumulative layout shift - a measurement of visual stability

Additionally, TTFB (time to first byte) and FCP (first contentful paint) are also reported. Those metrics provide additional measurements of loading experience and can help debug issues with high LCP.

These metrics are reported as standard Artillery metrics, and can be automatically sent to an external monitoring system with Artillery’s publish-metrics plugin, and visualized in Artillery Cloud.

More information

Visualize results with Artillery Cloud

Artillery CLI can be configured to send test reports to Artillery Cloud for visualization and analysis.

Aggregate Core Web Vitals values and scores are displayed for each page, as well as changes in those values throughout the load test.

Page performance visualization in Artillery Cloud

Sign up for early access to Artillery Cloud ›

Test at scale, cost-efficiently

Fargate support is available as part of the Artillery CLI at no charge. You only pay AWS for the resources used to run your load tests.

AWS Fargate is a pay-as-you-go serverless platform. The charges will vary depending on the duration and volume of your load tests, but are likely to be an order of magnitude less than the cost of using a hosted load testing platform, or building an in-house solution for distributed load testing.

More information

No DevOps needed

To run tests on AWS Fargate with Artillery, you will need an AWS account with configured AWS credentials. Artillery uses the official AWS SDK to create resources it needs to run your load tests on the fly. There is no long-lived infrastructure that needs to be set up or managed.

More information