# throttleCPU

Throttles the CPU to emulate a slower processor.

info

Note that using the `throttleCPU` command requires support for Chrome DevTools protocol and e.g. can not be used when running automated tests in the cloud. Chrome DevTools protocol is not installed by default, use `npm install puppeteer-core` to install it. Find out more in the [Automation Protocols](/docs/automationProtocols.md) section.

## Usage[​](#usage "Direct link to Usage")

```
await browser.throttleCPU(factor)
```

## Parameters[​](#parameters "Direct link to Parameters")

| Name     | Type     | Details                                                   |
| -------- | -------- | --------------------------------------------------------- |
| `factor` | `number` | slowdown factor (1 is no throttle, 2 is 2x slowdown, etc) |

## Example[​](#example "Direct link to Example")

throttleCPU.js

```
it('should throttle the CPU', async () => {
    await browser.throttleCPU(2) // 2x slowdown
});
```
