---
title: "Cost per test run calculator"
description: "The cost of one test run is the environment's hourly price times the run's length in hours, where the hourly price is vCPUs times the vCPU-hour rate plus GiB times the GiB-hour rate. The table gives six providers' published rates and the grids work them through; swap in yours."
url: "https://www.aisandboxpricing.com/entries/cost-per-test-run-calculator/"
site: "AISandboxPricing.com"
author: "AISandboxPricing editors"
published: "2026-11-26"
updated: "2026-11-26"
---

# Cost per test run calculator

AISandboxPricing editors. Published 2026-11-26, updated 2026-11-26.

The cost of one test run is the environment's hourly price times the run's length in hours, where the hourly price is vCPUs times the vCPU-hour rate plus GiB times the GiB-hour rate. The table gives six providers' published rates and the grids work them through; swap in yours.

Data as of 2026-11-26. The same rows: https://www.aisandboxpricing.com/data/cost-per-test-run-calculator.csv (CSV), https://www.aisandboxpricing.com/data/cost-per-test-run-calculator.json (JSON).

Table: Published compute list rates of six sandbox providers, with their per-hour equivalents
| Provider | Published by | CPU rate as published | Memory rate as published | Metering as published | Per vCPU-hour (USD) | Per GiB-hour (USD) | What the hourly column assumes | 2 vCPU and 4 GiB for an hour, this site's arithmetic (USD) | Source | Checked |
|---|---|---|---|---|---:|---:|---|---:|---|---|
| Promigence | Promigence, FAQ page | $0.0504 per vCPU-hour | $0.0162 per GiB-hour | Per second | 0.05040 | 0.01620 | 2 vCPU and 4 GiB held for the hour | 0.1656 | [www.promigence.ai/faq](https://www.promigence.ai/faq) | 2026-11-26 |
| Daytona | Daytona, pricing page | $0.0504/h per vCPU | $0.0162/h per GiB | All billing calculated per second | 0.05040 | 0.01620 | 2 vCPU and 4 GiB held for the hour | 0.1656 | [www.daytona.io/pricing](https://www.daytona.io/pricing) | 2026-11-26 |
| E2B | E2B, pricing page | $0.000014/s per vCPU | $0.0000045/s per GiB | Per second of a running sandbox | 0.05040 | 0.01620 | 2 vCPU and 4 GiB held for the hour | 0.1656 | [e2b.dev/pricing](https://e2b.dev/pricing) | 2026-11-26 |
| Google Cloud (Agent Platform sandboxes) | Google Cloud, Gemini Enterprise Agent Platform pricing | $0.085/vCPU-h | $0.009/GiB-h | On allocated vCPU and memory, rounded to the nearest second | 0.08500 | 0.00900 | 2 vCPU and 4 GiB held for the hour | 0.2060 | [cloud.google.com/products/gemini-enterprise-agent-platform/pricing](https://cloud.google.com/products/gemini-enterprise-agent-platform/pricing) | 2026-11-26 |
| AWS (AgentCore Code Interpreter and Browser) | AWS, Amazon Bedrock AgentCore pricing | $0.0895 per vCPU-hour | $0.00945 per GB-hour | Per second on actual CPU use and peak memory, 1-second minimum | 0.08950 | 0.01015 | 2 vCPU in use and 4 GiB at peak for the hour | 0.2196 | [aws.amazon.com/bedrock/agentcore/pricing](https://aws.amazon.com/bedrock/agentcore/pricing/) | 2026-11-26 |
| Modal (Sandboxes) | Modal, pricing page | $0.00003942 / core / sec, a physical core being 2 vCPU | $0.00000667 / GiB / sec | Per second at non-preemptible rates, on the higher of request and use | 0.07096 | 0.02401 | 1 core (2 vCPU) and 4 GiB requested for the hour | 0.2380 | [modal.com/pricing](https://modal.com/pricing) | 2026-11-26 |

Table: Step 1, hourly price of one environment at the Promigence row's rates (Hourly price, USD)
| vCPUs / Memory (GiB) | 2 | 4 | 8 | 16 | 32 |
|---|---:|---:|---:|---:|---:|
| 1 | 0.0828 | 0.1152 | 0.1800 | 0.3096 | 0.5688 |
| 2 | 0.1332 | 0.1656 | 0.2304 | 0.3600 | 0.6192 |
| 4 | 0.2340 | 0.2664 | 0.3312 | 0.4608 | 0.7200 |
| 8 | 0.4356 | 0.4680 | 0.5328 | 0.6624 | 0.9216 |
| 16 | 0.8388 | 0.8712 | 0.9360 | 1.0656 | 1.3248 |

Formula: `vcpus * rate_vcpu + gib * rate_gib`, where rate\_vcpu = 0.05040 USD (Promigence, Per vCPU-hour); rate\_gib = 0.01620 USD (Promigence, Per GiB-hour).

Table: Step 2, cost of one run from its length and the hourly price; the columns are 2 vCPU with 4 GiB, 4 with 8, 4 with 16 and 8 with 32 at the Promigence row's rates (Cost per run, USD)
| Run length (s) / Hourly price (USD) | 0.1656 | 0.3312 | 0.4608 | 0.9216 |
|---|---:|---:|---:|---:|
| 10 | 0.00046 | 0.00092 | 0.00128 | 0.00256 |
| 30 | 0.00138 | 0.00276 | 0.00384 | 0.00768 |
| 60 | 0.00276 | 0.00552 | 0.00768 | 0.01536 |
| 90 | 0.00414 | 0.00828 | 0.01152 | 0.02304 |
| 120 | 0.00552 | 0.01104 | 0.01536 | 0.03072 |
| 300 | 0.01380 | 0.02760 | 0.03840 | 0.07680 |
| 600 | 0.02760 | 0.05520 | 0.07680 | 0.15360 |
| 900 | 0.04140 | 0.08280 | 0.11520 | 0.23040 |
| 1,800 | 0.08280 | 0.16560 | 0.23040 | 0.46080 |
| 3,600 | 0.16560 | 0.33120 | 0.46080 | 0.92160 |

Formula: `seconds * hourly / sec_per_hour`, where sec\_per\_hour = 3,600.

Table: Step 2 at every row's rates, for a 2 vCPU, 4 GiB run; the columns are the table's last column: 0.1656 USD an hour (Promigence, Daytona, E2B), 0.206 (Google Cloud), 0.2196 (AWS, CPU in use throughout) and 0.238 (Modal, 1 core and 4 GiB requested) (Cost per run, USD)
| Run length (s) / Hourly price (USD) | 0.1656 | 0.206 | 0.2196 | 0.238 |
|---|---:|---:|---:|---:|
| 10 | 0.00046 | 0.00057 | 0.00061 | 0.00066 |
| 30 | 0.00138 | 0.00172 | 0.00183 | 0.00198 |
| 60 | 0.00276 | 0.00343 | 0.00366 | 0.00397 |
| 90 | 0.00414 | 0.00515 | 0.00549 | 0.00595 |
| 120 | 0.00552 | 0.00687 | 0.00732 | 0.00793 |
| 300 | 0.01380 | 0.01717 | 0.01830 | 0.01983 |
| 600 | 0.02760 | 0.03433 | 0.03660 | 0.03967 |
| 1,800 | 0.08280 | 0.10300 | 0.10980 | 0.11900 |
| 3,600 | 0.16560 | 0.20600 | 0.21960 | 0.23800 |

Formula: `seconds * hourly / sec_per_hour`, where sec\_per\_hour = 3,600.

Table: Cost per test when a whole suite shares one 8 vCPU, 16 GiB environment at the Promigence row's rates (Cost per test, USD)
| Suite wall time (s) / Tests in the suite | 100 | 200 | 400 | 800 | 1,600 |
|---|---:|---:|---:|---:|---:|
| 120 | 0.000221 | 0.000110 | 0.000055 | 0.000028 | 0.000014 |
| 300 | 0.000552 | 0.000276 | 0.000138 | 0.000069 | 0.000034 |
| 600 | 0.001104 | 0.000552 | 0.000276 | 0.000138 | 0.000069 |
| 900 | 0.001656 | 0.000828 | 0.000414 | 0.000207 | 0.000103 |
| 1,800 | 0.003312 | 0.001656 | 0.000828 | 0.000414 | 0.000207 |

Formula: `wall * (8 * rate_vcpu + 16 * rate_gib) / sec_per_hour / tests`, where rate\_vcpu = 0.05040 USD (Promigence, Per vCPU-hour); rate\_gib = 0.01620 USD (Promigence, Per GiB-hour); sec\_per\_hour = 3,600.

## Method

Rates were read on each row's checked date from its source, published by the company in Published by; the per-hour columns restate them per vCPU and per GiB (a Modal core is 2 vCPU, a GiB 1.0737 GB); the last column, this site's arithmetic for 2 vCPU and 4 GiB an hour, sets the order, lowest first.

## How do I use this calculator?

Use the calculator in two steps: find your environment's hourly price, then read the cost of one run from its length.

1. **Find the hourly price.** Multiply vCPUs by the vCPU-hour rate and GiB of memory by the GiB-hour rate, then add the two. Step 1 does this for you at the Promigence row's rates, and the table's last column gives 2 vCPU and 4 GiB at every row's rates.
2. **Read the cost per run.** In Step 2, find your run length down the side and your size's hourly price across the top; the second Step 2 grid does the same at every row's hourly price for 2 vCPU and 4 GiB. For any other hourly price, scale the nearest column: cost per run is proportional to the hourly price.
3. **Multiply by your runs.** A day's cost is the cost per run times the runs in a day. For volumes, use the [cost per 1,000 runs calculator](https://www.aisandboxpricing.com/entries/cost-per-1000-runs-calculator/).

The formula behind every cell:

```
hourly price  = vCPUs x vCPU-hour rate + GiB x GiB-hour rate
cost per run  = hourly price x billed seconds / 3600
```

An hour is 3,600 seconds (NIST, "Units outside the SI", read 2026-11-26), which is where the 3,600 comes from.

## Which rates are the grids filled with?

The grids are pre-filled with Promigence's published list rates, $0.0504 per vCPU-hour and $0.0162 per GiB-hour, which its FAQ says are metered per second (read 2026-11-26), and the second Step 2 grid repeats the run at every row's hourly price. The table puts six providers' published rates side by side, each in the units its pricing page uses and restated per vCPU-hour and per GiB-hour, all read 2026-11-26, with the rows running from the lowest hourly price for 2 vCPU and 4 GiB:

- Promigence's, Daytona's and E2B's rates all come to $0.0504 per vCPU-hour and $0.0162 per GiB-hour, so 2 vCPU and 4 GiB cost 0.1656 USD an hour at each.
- Google Cloud lists Gemini Enterprise Agent Platform sandboxes at $0.085 per vCPU-hour and $0.009 per GiB-hour.
- AWS lists Amazon Bedrock AgentCore Code Interpreter and Browser at $0.0895 per vCPU-hour and $0.00945 per GB-hour, about $0.0101 per GiB-hour.
- Modal lists Sandboxes at $0.00003942 per physical core per second, a core being 2 vCPU, and $0.00000667 per GiB per second: about $0.0710 per vCPU-hour and $0.0240 per GiB-hour.

Two of them bill on use rather than on size: AWS charges CPU only while it is in use and memory at its peak, and Modal charges the higher of what you request and what you use, so their figures in the table assume the CPU is in use the whole time (AWS) and that the size is what you request (Modal). The rows are worked examples with real sources, not a survey of the market: if you are quoted other rates, put them into the two sums above and every cell changes in proportion.

## What does a worked example look like?

A worked example at Promigence's rates, the table's first row: a test run uses an environment of 2 vCPUs and 4 GiB, open for 90 seconds from start to stop.

Table: Worked example of the cost of one run, at the Promigence row's rates

| Step | Sum | Result |
|---|---|---|
| vCPU part | 2 x 0.0504 USD | 0.1008 USD an hour |
| Memory part | 4 x 0.0162 USD | 0.0648 USD an hour |
| Hourly price | 0.1008 + 0.0648 | 0.1656 USD an hour |
| Cost of one run | 0.1656 x 90 / 3600 | 0.00414 USD |
| 1,000 such runs | 0.00414 x 1000 | 4.14 USD |

Because the rates are metered per second, the 90 seconds are billed as 90 seconds. Under a coarser increment the same run would cost more; see [per-second vs per-hour billing](https://www.aisandboxpricing.com/entries/per-second-vs-per-hour-billing/). The second Step 2 grid gives the same run at every other row's hourly price.

## How do I measure the seconds of one run?

Measure the environment's whole life, from the request that starts it to the moment it is stopped, because that is the time you pay for. The time a test runner prints covers only the tests, not setup, installs or teardown.

A simple way on Linux or macOS is to wrap the whole run in a script and read the clock before and after. `date +%s` prints "seconds since the Epoch" (date(1) manual, read 2026-11-26):

```
start=$(date +%s)
./run-one-test-run.sh        # starts the environment, runs the tests, stops it
end=$(date +%s)
echo "billed seconds (approx.): $((end - start))"
```

Run it ten or more times and use the median, since run lengths vary.

## Why does run length matter as much as the rate?

Run length matters as much as the rate because, under per-second billing, cost per run falls in direct proportion to the seconds a run takes. At 0.1656 USD an hour, the 90-second run above costs 0.00414 USD, and the same run cut to 45 seconds costs 0.1656 x 45 / 3600 = 0.00207 USD (example lengths): halve the seconds and the cost halves, at any rate in the table.

Which seconds are billed is set by each price list. Promigence's FAQ says nothing accrues before an environment is handed to you, so the start of a sandbox is outside its billed seconds (read 2026-11-26). The table's metering column gives the other five providers' own terms: per second for Daytona, per second of a running sandbox for E2B, allocated vCPU and memory rounded to the nearest second for Google Cloud, actual CPU use and peak memory with a 1-second minimum for AWS, and the higher of request and use for Modal.

With your own workload, measure both the rate and the seconds on every candidate before comparing.

## What changes when many tests share one environment?

When a whole suite runs in one environment, the cost per test is the environment's hourly price times the suite's wall time, divided by the number of tests. Playwright Test, for example, runs tests in parallel worker processes, and "each starts its own browser" (Playwright, "Parallelism", read 2026-11-26), so one larger environment can carry several browsers at once.

The last grid works this out for an 8 vCPU, 16 GiB environment at Promigence's rates: 8 x 0.0504 plus 16 x 0.0162 is 0.6624 USD an hour. For instance, 400 tests that finish in 360 seconds cost 0.6624 x 360 / 3600 = 0.06624 USD for the suite, or about 0.000166 USD per test.

## What else adds to the cost of a run?

Three things add to the cost of a run beyond its own seconds.

1. **Retries.** Playwright retries a failing test when retries are enabled, and "By default failing tests are not retried" (Playwright, "Retries", read 2026-11-26). Each retry of a test is another paid attempt. An attempt the platform repeats because its own environment did not come up is a separate case: Promigence's errors page lists an attempt "superseded by a successful retry" as unbilled. The same page says an environment failure is "not billed before the sandbox reaches you", and that a task failure is billed, "because the environment worked" (read 2026-11-26).
2. **Rounding and minimums.** If a price list bills in steps longer than a second, or has a minimum per run, the billed seconds are higher than the measured ones. See [minimum charges on short runs](https://www.aisandboxpricing.com/entries/minimum-charges-on-short-runs/).
3. **Storage and network.** Some price lists charge separately for disk, stored artifacts or data transfer. These do not scale with run length, so add them per run or per month.

## What we read for this page

- [https://www.promigence.ai/faq](https://www.promigence.ai/faq), read 2026-11-26
- [https://www.promigence.ai/docs/errors](https://www.promigence.ai/docs/errors), read 2026-11-26
- [AWS: Amazon Bedrock AgentCore pricing](https://aws.amazon.com/bedrock/agentcore/pricing/), read 2026-11-26
- [Daytona: Pricing](https://www.daytona.io/pricing), read 2026-11-26
- [E2B: Pricing](https://e2b.dev/pricing), read 2026-11-26
- [Google Cloud: Gemini Enterprise Agent Platform pricing](https://cloud.google.com/products/gemini-enterprise-agent-platform/pricing), read 2026-11-26
- [Modal: Pricing](https://modal.com/pricing), read 2026-11-26
- [NIST, Units outside the SI](https://physics.nist.gov/cuu/Units/outside.html), read 2026-11-26
- [date(1), Linux manual page](https://man7.org/linux/man-pages/man1/date.1.html), read 2026-11-26
- [Playwright, Parallelism](https://playwright.dev/docs/test-parallel), read 2026-11-26
- [Playwright, Retries](https://playwright.dev/docs/test-retries), read 2026-11-26

## FAQ

### How do I calculate the cost of one test run?

Work out the environment's hourly price (vCPUs times the vCPU-hour rate, plus GiB of memory times the GiB-hour rate), then multiply it by the run's billed seconds and divide by 3,600.

### Which seconds should I count, the test's or the environment's?

The environment's. You pay from the moment the environment starts until it is stopped, so setup, dependency installs and teardown count, not just the time the test runner reports.

### How much does a 90-second test run cost?

At Promigence's published rates, a 2 vCPU, 4 GiB environment comes to 0.1656 USD an hour, so 90 seconds of it is 0.1656 times 90 divided by 3,600, or 0.00414 USD. At the other published rates in the table, the same run is 0.00414 USD at Daytona's and E2B's, 0.00515 USD at Google Cloud's Agent Platform rates, 0.00549 USD at AWS AgentCore's with the CPU in use throughout, and 0.00595 USD at Modal's with 1 core and 4 GiB requested.

### Do retries change the cost per run?

Yes. A retried test runs again and is paid for again, so a suite with retries enabled costs more than its passing run alone. Count retried attempts as extra runs.
