---
title: Compute units
url: https://docs.apify.com/actors/running/usage-and-resources/compute-units.md
parents:
  - [Apify documentation](https://docs.apify.com/llms.txt)
  - [Actors](https://docs.apify.com/actors.md)
  - [Run](https://docs.apify.com/actors/running.md)
  - [Usage and resources](https://docs.apify.com/actors/running/usage-and-resources.md)
previous: [Usage and resources](https://docs.apify.com/actors/running/usage-and-resources.md)
next: [Permissions](https://docs.apify.com/actors/running/permissions.md)
---

> ## Documentation index
> Fetch the complete documentation index at: https://docs.apify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Compute units

A compute unit (CU) is the unit Apify uses to measure the platform resources that Actor runs and builds use. The price of a CU depends on your [subscription plan](https://docs.apify.com/account/subscriptions.md).

## Calculate compute units

CUs are calculated by multiplying two factors:

* Memory (GB): The memory allocated to the Actor run or build.
* Duration (hours): How long the run or build lasts. For example, a run that takes 6 minutes lasts 0.1 hours. Duration is measured to the second.

Example: 1 GB (1,024 MB) of memory × 1 hour = 1 CU

## Who pays for compute units

The Actor's [pricing model](https://docs.apify.com/actors/running/actors-in-store.md) determines who pays for the CUs:

* Pay-per-usage Actors: Users pay for the CUs that the Actor run uses.
* Pay-per-event Actors: In most cases, the Actor developer covers the CUs. Some pay-per-event Actors pass platform usage on to users. You can view the pricing on the Actor's page in Apify Store.

When developing your own Actor, you pay for the CUs used by every run and build that you start.

## Estimate resource consumption

The following factors affect resource consumption, from most to least important:

* Scraping with a browser and using libraries such as [Puppeteer or Playwright](https://docs.apify.com/academy/puppeteer-playwright.md) uses more resources and is slower than parsing plain HTML with Cheerio or Beautiful Soup. Cheerio and Beautiful Soup can be up to 20 times faster.
* Running one large batch costs less than splitting the same work into many short runs. Each run spends CUs on starting the Actor, and a short run can end before the Actor scales up to use all its allocated memory and CPU.
* Heavy pages, such as Amazon or Facebook, take more time to load, whether you use a browser or plain HTML parser. Large pages can take up to 3 times more resources to load and parse than average pages.

To estimate your monthly usage, run the Actor the way you plan to use it long term and check how many CUs a run uses. For example, you want to scrape data every hour for a month. With 4096 MB of memory, a run takes 15 minutes and uses 1 CU (4 GB × 0.25 hours). Over a month, that's 720 CUs (1 CU × 24 runs × 30 days).

## Check your usage

Apify Console shows your total CU usage for the current billing period and the usage of each run.

### Overall usage

To see a summary of your CU usage:

1. Log in to [Apify Console](https://console.apify.com).
2. In the left-side panel, select **Billing**.
3. Go to the **Current period** tab.
4. Under **Platform usage breakdown by services**, expand the **Actors** section.

### Usage per run

To check the resource consumption of an Actor run:

1. Log in to [Apify Console](https://console.apify.com).
2. In the left-side panel, select **Runs**.
3. From the table, select the run.
4. Next to the run status, select **Show details**.

![An Actor run\&#39;s platform usage](/assets/images/run-resource-consumption-ff52c7145cd153a37b2375bf2c5ebb45.svg)
