# Benchmark your phone

One command measures how many requests a second your phone can serve, how fast it answers and how warm it gets. Share it to see how it compares on dukoi.com/bench.

## Run it

Plug the phone in and close other apps you don’t need. Then, from any folder:

```sh
$ dukoi bench
Benchmarking a024 (Nothing A024, SM8635, 12 GB, Android 16)

✓ Deployed the bench app
✓ On Wi-Fi            4,544 req/s   p99 13 ms
✓ Through the tunnel  2,800 req/s   p99 21 ms
✓ Hot, after 10 min   2,690 req/s   p99 22 ms   39 °C
✓ Removed the bench app
```

It takes about 13 minutes. `dukoi bench --quick` skips the hot test and takes about 3.

## What it measures

The bench deploys the notes API as an app called `dukoi-bench`, adds 20 notes, and loads `GET /notes` with 50 connections for 60 seconds at a time:

-   **On Wi-Fi**: straight to the phone. This is what the phone can do by itself.
-   **Through the tunnel**: through a quick link, the way visitors reach your apps. Your home internet matters here as much as the phone.
-   **Hot**: after 10 minutes of load, when the phone has warmed up.

Each line shows requests a second, p99 latency (99 in 100 requests answer faster than this) and the battery temperature. The bench app is removed at the end, even if you stop it with Ctrl+C.

## Share it

```sh
$ dukoi bench --share
```

After the run, the phone signs the result and the CLI sends it to [dukoi.com/bench](/bench.md), where each phone model shows the median of everyone’s runs.

**What’s sent:** the phone’s maker, model, chip, memory and Android version, the Dukoi and Node versions, and the numbers. **Never sent:** the phone’s name, your apps, URLs, IP address or anything personal.

A phone can share once an hour.

> Numbers lower than you expected?
> 
> Other running apps share the CPU, and the bench tells you how many were running. If it says this computer was the limit, close other programs or run it from a faster computer.
