NPM ci time github hosted vs self hosted

We use both github hosted and internal runners and I am astounded at how fast the npm ci works for internal runners and was hoping to get some info about how it is so fast.

@excilsploft,

Normally, when you use GitHub-hosted runners in your workflow, every time it needs to generate a fresh instance of the virtual machine for each job.
When using self-hosted runners, it just needs to find the available runners with the specified labels from the existing runners and route each job to an available runner.

However, it is not absolute that using self-hosted runner is faster than using GitHub-hosted runner in the workflows. Some times, using GitHub-hosted runner is a more quicker and simpler way.

More details, you can see “Differences between GitHub-hosted and self-hosted runners”.