R tests run very slowly (10x slower than locally)

r

#1

The tests in my R package used to be noticeably faster than running them on Travis-CI and pretty much as fast as on my local machine. However, recently they are much, much slower (around 10x slower).

https://circleci.com/gh/HughParsonage/grattan/222#tests/containers/3

For example, devtools::test(filter = "age_pension") took 181.4 s whereas locally it takes 1.4s.

Has anything changed since December (when the entire test suite finished in 2:08 minutes).


#2

Could you try switching to the Machine executor in a new branch, to see if that helps? I think some new CPUs went in recently, and they were meant to be faster :sunglasses:.


#3

Thanks for the suggestion. How do I do that? I’ve set machine: true but I’m not sure how to run the docker container thereafter.


#4

Ah, if you need Docker anyway, then install Docker in the usual way as you would on a VPS, and then use docker run as normal.