Integrating into a CI environment

Use the SpeedCurve API to integrate with any CI tool like Jenkins, Travis, or CircleCI

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 GitHub action, a command line interface, and a 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.)