Why do my tests take longer to run on CircleCI than locally?

Your build and tests may run more slowly on CircleCI than on a local developer machine. 

This can be due to the executor being used (i.e. Docker vs Machine), along with shared resources vs dedicated hardware. 

To offer a cost-effective service, all standard builds run with 2 CPU cores and 4GB RAM.

How to speed up builds and tests

Parallel jobs

You can split your tests to run in parallel in multiple containers using parallelism and test splitting.

Parallelism for faster jobs 

Test splitting tutorial

Resource Class

Customers on different CircleCI Plans can utilize other resource classes that give you more CPU power or RAM. Available resource classes can be found in our docs.

Was this article helpful?
8 out of 27 found this helpful



Article is closed for comments.