# With every safety check on, Jadpo still answers requests faster than TypeScript on Bun or Node

Jadpo is an experimental programming language for web backends. We wrote one todo app twice, in Jadpo and in strict TypeScript, with sign-in, permission checks and rate limits switched on. Then we timed three requests: reading one todo, adding one, and listing 50. TypeScript used 1.7 to 3.3 times as much CPU for each request as Jadpo did, even against whichever of Bun and Node was faster.

Jadpo apps compile to a native binary, or to WebAssembly for Cloudflare Workers, Cloudflare's serverless platform. We timed both, running workerd, Cloudflare's open-source Workers runtime, on our own machine.

-   **Jadpo used less CPU for each request.**On reading, adding and listing todos, as a native binary and on Workers' runtime.
-   **As a native binary, Jadpo starts in 21 ms.**Against 109 ms for Bun and 419 ms for Node.
-   **Jadpo is slower at background work.**Compiled for Workers, Jadpo handles plain background events at 56% of the rate of TypeScript on Bun. A scheduled job takes nearly twice as long.

## CPU per request

How much processor time the app spent answering one request. Compare this figure first. A native Jadpo app uses a thread for each processor core, while Bun, Node and Workers' runtime each use one thread. Extra threads don't lower the CPU a request takes.

As a native binary, Jadpo also starts faster: in 21 ms, against 109 ms for Bun and 419 ms for Node.

CPU time for each request, in milliseconds:

| Measured | Runtime | Value |
| --- | --- | --- |
| Native binary, Read one todo | Jadpo | 0.11 ms |
| Native binary, Read one todo | Bun | 0.19 ms |
| Native binary, Read one todo | Node | 0.20 ms |
| Add one todo | Jadpo | 0.12 ms |
| Add one todo | Bun | 0.47 ms |
| Add one todo | Node | 0.39 ms |
| List 50 todos | Jadpo | 0.35 ms |
| List 50 todos | Bun | 1.06 ms |
| List 50 todos | Node | 2.18 ms |
| On Workers' runtime, run locally, Read one todo | Jadpo | 0.65 ms |
| On Workers' runtime, run locally, Read one todo | TypeScript | 1.25 ms |
| Add one todo | Jadpo | 0.71 ms |
| Add one todo | TypeScript | 1.80 ms |
| List 50 todos | Jadpo | 1.11 ms |
| List 50 todos | TypeScript | 2.69 ms |

Each kind of request has its own scale, so small values still show their gap.

## The slower requests: p95 latency

The time within which 95 of every 100 requests were answered. It includes waiting for PostgreSQL. The gap here is much wider than the CPU gap, and the benchmark summary doesn't break down why.

The native binary's extra threads help it here, so this flatters Jadpo more than CPU per request does.

p95 latency for each request, in milliseconds:

| Measured | Runtime | Value |
| --- | --- | --- |
| Native binary, Read one todo | Jadpo | 4.5 ms |
| Native binary, Read one todo | Bun | 13.2 ms |
| Native binary, Read one todo | Node | 14.1 ms |
| Add one todo | Jadpo | 6.4 ms |
| Add one todo | Bun | 26.5 ms |
| Add one todo | Node | 24.4 ms |
| List 50 todos | Jadpo | 11.3 ms |
| List 50 todos | Bun | 65.1 ms |
| List 50 todos | Node | 97.4 ms |
| On Workers' runtime, run locally, Read one todo | Jadpo | 9.4 ms |
| On Workers' runtime, run locally, Read one todo | TypeScript | 27.1 ms |
| Add one todo | Jadpo | 10.3 ms |
| Add one todo | TypeScript | 32.9 ms |
| List 50 todos | Jadpo | 15.8 ms |
| List 50 todos | TypeScript | 42.4 ms |

Each kind of request has its own scale, so small values still show their gap.

## Where Jadpo is slower

On Workers' runtime, Jadpo starts a little more slowly than TypeScript does there.

For background work, the benchmark compares Jadpo on Workers' runtime with TypeScript on Bun. The benchmark has no figures for native Jadpo here.

Measured

Jadpo

TypeScript

Start-up time, on Workers' runtimeLower is better. TypeScript on Workers' runtime

70 ms

65 ms

Background events handled a secondHigher is better. TypeScript on Bun

2,239

4,017

Rate for events that each call another serviceHigher is better. As a share of TypeScript on Bun

63%

100%

One run of a scheduled job, p95Lower is better. TypeScript on Bun

55 ms

29 ms

## How we tested it

1 app**Written twice**

In [Jadpo](https://github.com/jadpo-dev/jadpo/tree/main/benchmarks/golden-todo), and in [strict TypeScript](https://github.com/jadpo-dev/jadpo/tree/main/benchmarks/golden-todo/typescript) with Hono, Zod, Drizzle, CASL and JOSE. Like a real backend, it manages todos with sign-in, permissions, background jobs and delayed deletes, which keep a deleted todo for 30 days before removing it.

44**tests that both copies pass before timing**

The same [tests over HTTP](https://github.com/jadpo-dev/jadpo/tree/main/benchmarks/golden-todo#readme), covering everything below, before anything is timed.

All checks**Switched on while timed**

Requests read, add and list todos with sign-in, permission checks, rate limits and transactions. Every response, and every row saved, is checked.

3**Rounds for each figure**

Each figure is the median of three rounds. PostgreSQL 16 ran on the same machine.

-   **Sign-in:** browser sessions, API tokens, keys for other services that call it, and tokens from an identity provider. Every route needs sign-in except the health check.
-   **Permissions:** each person reads and changes only their own todos. A missing or forged credential is refused.
-   **Data:** PostgreSQL with migrations, edits that change only the fields sent, and paged lists that stay stable while the data changes.
-   **Reminders:** a schedule finds overdue todos, and background jobs send reminders through a mail service, without sending a second reminder if a job runs twice.
-   **Deletes:** a deleted todo is kept for 30 days, then a purge job removes it in batches.
-   **Running it:** typed settings and secrets checked before the app starts, rate limits on every caller, and a readiness check.

## Read with care

-   **One laptop.** Every run was on one Apple M1 Pro, which PostgreSQL ran on too, so these figures don't show what a production server can handle.
-   **Clients waited for answers.** Each test client waited for an answer before sending its next request, so the load never got ahead of the app. That measures what a request costs, not how much load the app can take.
-   **It didn't run on Cloudflare itself.** Workers' runtime ran on our machine as a stand-in. Jadpo apps do run on Cloudflare. jadpo.dev's registry of Jadpo packages is one.
-   **We wrote both apps.** Both copies and the method are public, so you can check them and run them again.

From [Jadpo's benchmark summary](https://github.com/jadpo-dev/jadpo/blob/main/docs/compiler-runtime.md#211-performance), 29 Oct 2026. [How each one is run, and how to reproduce it](https://github.com/jadpo-dev/jadpo/blob/main/benchmarks/README.md)
