SpeedCurve Synthetic can be integrated into your continuous integration or continuous deployment environment as a way to test for and react to performance issues.

Where does SpeedCurve fit in my CI/CD pipeline?

In a typical CI/CD pipeline, SpeedCurve fits in either the integration testing stage,  the post-deploy stage, or both.

  1. Compile code, run unit tests.
  2. Deploy the build to the testing environment.
  3. Run integration tests, trigger SpeedCurve tests on the testing environment.
  4. Promote the build to the staging/production environment.
  5. Trigger SpeedCurve tests on the staging/production environment.

How to do it

There are two main SpeedCurve components that you will use to provide this integration:

Using these components, you can implement a performance workflow that looks something like this:

  1. Set performance budgets within SpeedCurve.
  2. Change the code or content of your page(s).
  3. Trigger SpeedCurve tests using the Deploy API. (We have a CLI and Node.js API to help with this).
  4. Use the Performance Budgets API or receive alerts to determine if your changes introduced performance issues.
  5. Monitor the performance of your pages and tune your performance budgets.
  6. Cycle back to (2.)

Related reading on the SpeedCurve blog: Performance testing in CI: Let's break the build!

Did this answer your question?