Every Service, One Scorecard
Before you trust these numbers
- The author of NpgsqlRest runs this benchmark, and NpgsqlRest is one of the services in it.
- The analysis was written with AI assistance from the raw data, then reviewed and edited.
- Every test ran once, on one machine. Treat differences of a few percent as a tie.
- Everything is public so you can check it: the code of every service, the data, and everything that went wrong, and how to run it yourself. Corrections and pull requests are welcome.
Find your platform and see where its services stand in every kind of test.
How to read the tables
- Speed score: how fast a service is compared with the fastest one, averaged over all 44 tests. 100% would be the fastest in every test. How it is calculated.
- Position: its place among all 31 services by that score. 1 is the fastest overall.
- Want two services side by side? Use Compare Any Two.
Jump to: NpgsqlRest · .NET · Go · Rust · Java · Node.js · Bun and Deno · Python · PHP · PostgREST · GraphQL
NpgsqlRest
8 services. The fastest is NpgsqlRest 4.1 JIT · SQL files, at position 4 of 31 with a speed score of 82%.
↑ longer bar is betterHow fast each one is compared with the fastest service of all 31, averaged over all 44 tests. 100% would be the fastest in every test.
| Service | Position | Speed score | Tests where it was the fastest | Runs on | How the API is made | Its code |
|---|---|---|---|---|---|---|
| NpgsqlRest 4.1 JIT · SQL files | 4 of 31 | 82% | 6 of 44 | .NET 11 | generated from SQL files | appsettings.json |
| NpgsqlRest 4.1 JIT · functions | 6 of 31 | 79% | 1 of 44 | .NET 11 | generated from functions | appsettings.json |
| NpgsqlRest 3.21 JIT · SQL files | 7 of 31 | 77% | 3 of 44 | .NET 10 | generated from SQL files | appsettings.json |
| NpgsqlRest 4.1 AOT · SQL files | 9 of 31 | 77% | 0 of 44 | .NET 11 native AOT | generated from SQL files | appsettings.json |
| NpgsqlRest 4.1 AOT · functions | 14 of 31 | 75% | 0 of 44 | .NET 11 native AOT | generated from functions | appsettings.json |
| NpgsqlRest 3.21 JIT · functions | 15 of 31 | 75% | 0 of 44 | .NET 10 | generated from functions | appsettings.json |
| NpgsqlRest 3.21 AOT · SQL files | 17 of 31 | 73% | 0 of 44 | .NET 10 native AOT | generated from SQL files | appsettings.json |
| NpgsqlRest 3.21 AOT · functions | 19 of 31 | 71% | 0 of 44 | .NET 10 native AOT | generated from functions | appsettings.json |
Its place in each kind of test, requests per second, and what it costs to run
Place among the 31 services in each kind of test (1 is the fastest; at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| NpgsqlRest 4.1 JIT · SQL files | 1 | 7 | 6 | 6 | 1 | 5 | 3 | 1 | 9 |
| NpgsqlRest 4.1 JIT · functions | 3 | 6 | 9 | 9 | 4 | 7 | 7 | 2 | 12 |
| NpgsqlRest 3.21 JIT · SQL files | 4 | 4 | 7 | 17 | 27 | 6 | 5 | 5 | 7 |
| NpgsqlRest 4.1 AOT · SQL files | 5 | 15 | 13 | 13 | 2 | 19 | 9 | 8 | 17 |
| NpgsqlRest 4.1 AOT · functions | 6 | 12 | 15 | 12 | 5 | 15 | 13 | 9 | 18 |
| NpgsqlRest 3.21 JIT · functions | 8 | 5 | 11 | 16 | 26 | 11 | 6 | 7 | 5 |
| NpgsqlRest 3.21 AOT · SQL files | 13 | 13 | 14 | 19 | 29 | 14 | 11 | 14 | 10 |
| NpgsqlRest 3.21 AOT · functions | 16 | 11 | 16 | 18 | 28 | 17 | 12 | 12 | 11 |
Requests per second (at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| NpgsqlRest 4.1 JIT · SQL files | 16,948 | 57,187 | 34,124 | 16,220 | 8,786 | 43,266 | 53,981 | 38,217 | 30,878 |
| NpgsqlRest 4.1 JIT · functions | 15,940 | 57,264 | 33,662 | 16,129 | 8,528 | 41,129 | 48,985 | 37,779 | 29,919 |
| NpgsqlRest 3.21 JIT · SQL files | 15,934 | 57,336 | 33,986 | 15,827 | 3,210 | 41,444 | 50,272 | 32,998 | 31,854 |
| NpgsqlRest 4.1 AOT · SQL files | 15,861 | 49,846 | 31,539 | 15,994 | 8,617 | 36,158 | 46,059 | 31,978 | 27,403 |
| NpgsqlRest 4.1 AOT · functions | 15,681 | 51,786 | 30,669 | 16,021 | 8,371 | 37,165 | 45,305 | 31,911 | 26,984 |
| NpgsqlRest 3.21 JIT · functions | 15,478 | 57,280 | 32,818 | 15,829 | 3,289 | 39,809 | 49,233 | 32,672 | 32,058 |
| NpgsqlRest 3.21 AOT · SQL files | 15,316 | 51,417 | 31,318 | 15,792 | 2,446 | 37,220 | 45,694 | 30,461 | 30,393 |
| NpgsqlRest 3.21 AOT · functions | 15,171 | 53,859 | 29,965 | 15,822 | 2,574 | 37,022 | 45,404 | 30,947 | 30,288 |
What it costs to run
| Service | Most memory used MB | Memory when idle MB | First answer after ms | Image MB | Requests/s per CPU core | Lines: own + SQL |
|---|---|---|---|---|---|---|
| NpgsqlRest 4.1 JIT · SQL files | 224 | 39.4 | 1,254 | 123 | 4,131 | 29 + 135 |
| NpgsqlRest 4.1 JIT · functions | 204 | 38.9 | 1,213 | 123 | 4,079 | 21 + 205 |
| NpgsqlRest 3.21 JIT · SQL files | 542 | 48.6 | 1,104 | 108 | 2,829 | 29 + 135 |
| NpgsqlRest 4.1 AOT · SQL files | 190 | 23.9 | 244 | 59 | 3,557 | 29 + 135 |
| NpgsqlRest 4.1 AOT · functions | 133 | 22.8 | 287 | 59 | 3,539 | 21 + 205 |
| NpgsqlRest 3.21 JIT · functions | 422 | 47.6 | 1,064 | 108 | 2,779 | 21 + 205 |
| NpgsqlRest 3.21 AOT · SQL files | 436 | 22.1 | 195 | 58 | 2,842 | 29 + 135 |
| NpgsqlRest 3.21 AOT · functions | 365 | 21.3 | 231 | 58 | 2,828 | 21 + 205 |
.NET
6 services. The fastest is .NET 10 · plain Npgsql, at position 8 of 31 with a speed score of 77%.
↑ longer bar is betterHow fast each one is compared with the fastest service of all 31, averaged over all 44 tests. 100% would be the fastest in every test.
| Service | Position | Speed score | Tests where it was the fastest | Runs on | How the API is made | Its code |
|---|---|---|---|---|---|---|
| .NET 10 · plain Npgsql | 8 of 31 | 77% | 0 of 44 | .NET 10 | hand-written, Minimal API | Program.cs |
| .NET 10 · Dapper | 11 of 31 | 76% | 0 of 44 | .NET 10 | hand-written, Minimal API | Program.cs |
| .NET 11 · plain Npgsql | 13 of 31 | 75% | 0 of 44 | .NET 11 | hand-written, Minimal API | Program.cs |
| .NET 11 · Dapper | 16 of 31 | 74% | 0 of 44 | .NET 11 | hand-written, Minimal API | Program.cs |
| .NET 11 · EF Core | 24 of 31 | 50% | 0 of 44 | .NET 11 | hand-written, Minimal API | Program.cs |
| .NET 10 · EF Core | 25 of 31 | 49% | 0 of 44 | .NET 10 | hand-written, Minimal API | Program.cs |
Its place in each kind of test, requests per second, and what it costs to run
Place among the 31 services in each kind of test (1 is the fastest; at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| .NET 10 · plain Npgsql | 10 | 9 | 5 | 7 | 17 | 4 | 8 | 3 | 16 |
| .NET 10 · Dapper | 11 | 10 | 8 | 10 | 15 | 13 | 14 | 4 | 14 |
| .NET 11 · plain Npgsql | 14 | 16 | 10 | 15 | 18 | 12 | 15 | 6 | 15 |
| .NET 11 · Dapper | 15 | 14 | 12 | 14 | 19 | 18 | 16 | 13 | 13 |
| .NET 11 · EF Core | 22 | 24 | 24 | 24 | 24 | 24 | 25 | 24 | 24 |
| .NET 10 · EF Core | 23 | 25 | 25 | 25 | 22 | 25 | 24 | 25 | 25 |
Requests per second (at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| .NET 10 · plain Npgsql | 15,417 | 56,471 | 35,111 | 16,206 | 6,163 | 43,925 | 47,370 | 36,363 | 27,501 |
| .NET 10 · Dapper | 15,374 | 54,262 | 33,933 | 16,053 | 6,565 | 38,647 | 45,103 | 34,617 | 28,329 |
| .NET 11 · plain Npgsql | 15,292 | 49,416 | 33,516 | 15,926 | 5,762 | 39,344 | 44,322 | 32,947 | 27,970 |
| .NET 11 · Dapper | 15,286 | 50,728 | 31,563 | 15,947 | 5,747 | 37,020 | 43,260 | 30,672 | 29,424 |
| .NET 11 · EF Core | 10,375 | 15,730 | 13,657 | 10,873 | 4,009 | 13,653 | 14,039 | 12,987 | 13,382 |
| .NET 10 · EF Core | 10,111 | 15,376 | 13,442 | 10,842 | 4,309 | 12,934 | 14,102 | 12,898 | 12,848 |
What it costs to run
| Service | Most memory used MB | Memory when idle MB | First answer after ms | Image MB | Requests/s per CPU core | Lines: own + SQL |
|---|---|---|---|---|---|---|
| .NET 10 · plain Npgsql | 317 | 32.4 | 547 | 94 | 2,960 | 281 + 205 |
| .NET 10 · Dapper | 289 | 33.5 | 603 | 94 | 2,876 | 155 + 205 |
| .NET 11 · plain Npgsql | 341 | 33.1 | 508 | 108 | 3,569 | 281 + 205 |
| .NET 11 · Dapper | 319 | 33.9 | 506 | 108 | 3,474 | 155 + 205 |
| .NET 11 · EF Core | 348 | 46.5 | 1,019 | 110 | 1,758 | 116 + 205 |
| .NET 10 · EF Core | 312 | 45.5 | 998 | 96 | 1,604 | 116 + 205 |
Go
2 services. The fastest is Gin 1.12 (Go), at position 1 of 31 with a speed score of 93%.
↑ longer bar is betterHow fast each one is compared with the fastest service of all 31, averaged over all 44 tests. 100% would be the fastest in every test.
- 1Gin 1.12 (Go)93%
- 2Go 1.27 · net/http91%
Its place in each kind of test, requests per second, and what it costs to run
Place among the 31 services in each kind of test (1 is the fastest; at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Gin 1.12 (Go) | 2 | 2 | 3 | 2 | 11 | 1 | 2 | 16 | 8 |
| Go 1.27 · net/http | 20 | 1 | 1 | 1 | 8 | 2 | 1 | 17 | 2 |
Requests per second (at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Gin 1.12 (Go) | 16,896 | 60,090 | 37,428 | 19,865 | 7,670 | 50,908 | 54,489 | 29,924 | 31,511 |
| Go 1.27 · net/http | 13,690 | 61,391 | 39,402 | 20,264 | 8,251 | 50,754 | 54,910 | 29,588 | 33,651 |
What it costs to run
| Service | Most memory used MB | Memory when idle MB | First answer after ms | Image MB | Requests/s per CPU core | Lines: own + SQL |
|---|---|---|---|---|---|---|
| Gin 1.12 (Go) | 98 | 5.2 | 55 | 12 | 3,846 | 368 + 205 |
| Go 1.27 · net/http | 80 | 4.9 | 53 | 8 | 3,674 | 408 + 205 |
Rust
2 services. The fastest is Axum 0.8 (Rust), at position 10 of 31 with a speed score of 76%.
↑ longer bar is betterHow fast each one is compared with the fastest service of all 31, averaged over all 44 tests. 100% would be the fastest in every test.
Its place in each kind of test, requests per second, and what it costs to run
Place among the 31 services in each kind of test (1 is the fastest; at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Axum 0.8 (Rust) | 7 | 18 | 18 | 3 | 6 | 9 | 17 | 10 | 3 |
| Actix-web 4.20 (Rust) | 9 | 17 | 17 | 5 | 9 | 8 | 18 | 11 | 6 |
Requests per second (at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Axum 0.8 (Rust) | 15,564 | 44,570 | 29,197 | 16,355 | 8,289 | 40,309 | 41,821 | 31,642 | 32,789 |
| Actix-web 4.20 (Rust) | 15,433 | 45,486 | 29,474 | 16,231 | 8,118 | 40,688 | 41,541 | 31,039 | 31,955 |
What it costs to run
| Service | Most memory used MB | Memory when idle MB | First answer after ms | Image MB | Requests/s per CPU core | Lines: own + SQL |
|---|---|---|---|---|---|---|
| Axum 0.8 (Rust) | 133 | 2.6 | 51 | 29 | 3,861 | 334 + 205 |
| Actix-web 4.20 (Rust) | 137 | 3.4 | 47 | 30 | 3,949 | 345 + 205 |
Java
1 service. The fastest is Spring Boot 4.2 (Java 25), at position 21 of 31 with a speed score of 61%.
↑ longer bar is betterHow fast each one is compared with the fastest service of all 31, averaged over all 44 tests. 100% would be the fastest in every test.
| Service | Position | Speed score | Tests where it was the fastest | Runs on | How the API is made | Its code |
|---|---|---|---|---|---|---|
| Spring Boot 4.2 (Java 25) | 21 of 31 | 61% | 0 of 44 | Java 25 | hand-written, JDBC | Application.java |
Its place in each kind of test, requests per second, and what it costs to run
Place among the 31 services in each kind of test (1 is the fastest; at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Spring Boot 4.2 (Java 25) | 18 | 20 | 20 | 20 | 25 | 23 | 19 | 19 | 20 |
Requests per second (at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Spring Boot 4.2 (Java 25) | 14,165 | 36,662 | 23,782 | 15,766 | 3,342 | 17,658 | 35,283 | 23,332 | 25,583 |
What it costs to run
| Service | Most memory used MB | Memory when idle MB | First answer after ms | Image MB | Requests/s per CPU core | Lines: own + SQL |
|---|---|---|---|---|---|---|
| Spring Boot 4.2 (Java 25) | 1,620 | 202.6 | 2,518 | 96 | 2,470 | 189 + 205 |
Node.js
3 services. The fastest is Fastify 5.12, at position 20 of 31 with a speed score of 67%.
↑ longer bar is betterHow fast each one is compared with the fastest service of all 31, averaged over all 44 tests. 100% would be the fastest in every test.
- 1Fastify 5.1267%
- 2NestJS 12.656%
- 3Express 5.356%
| Service | Position | Speed score | Tests where it was the fastest | Runs on | How the API is made | Its code |
|---|---|---|---|---|---|---|
| Fastify 5.12 | 20 of 31 | 67% | 0 of 44 | Node.js 26 | hand-written, pg | app.js |
| NestJS 12.6 | 22 of 31 | 56% | 0 of 44 | Node.js 26 | hand-written, pg | perf.controller.ts |
| Express 5.3 | 23 of 31 | 56% | 0 of 44 | Node.js 26 | hand-written, pg | app.js |
Its place in each kind of test, requests per second, and what it costs to run
Place among the 31 services in each kind of test (1 is the fastest; at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Fastify 5.12 | 21 | 19 | 19 | 21 | 3 | 16 | 20 | 21 | 19 |
| NestJS 12.6 | 24 | 23 | 23 | 23 | 10 | 21 | 23 | 23 | 23 |
| Express 5.3 | 25 | 21 | 22 | 22 | 12 | 20 | 22 | 22 | 22 |
Requests per second (at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Fastify 5.12 | 10,809 | 41,679 | 25,634 | 14,749 | 8,584 | 37,037 | 33,821 | 18,284 | 26,707 |
| NestJS 12.6 | 9,351 | 26,905 | 18,721 | 12,977 | 7,891 | 24,009 | 22,433 | 14,199 | 17,964 |
| Express 5.3 | 7,733 | 29,164 | 20,002 | 13,368 | 7,575 | 26,353 | 24,424 | 15,013 | 19,542 |
What it costs to run
| Service | Most memory used MB | Memory when idle MB | First answer after ms | Image MB | Requests/s per CPU core | Lines: own + SQL |
|---|---|---|---|---|---|---|
| Fastify 5.12 | 774 | 123.6 | 372 | 88 | 2,612 | 129 + 205 |
| NestJS 12.6 | 810 | 210.5 | 827 | 84 | 2,008 | 135 + 205 |
| Express 5.3 | 746 | 102.7 | 322 | 85 | 2,005 | 130 + 205 |
Bun and Deno
2 services. The fastest is Bun 1.4, at position 3 of 31 with a speed score of 84%.
↑ longer bar is betterHow fast each one is compared with the fastest service of all 31, averaged over all 44 tests. 100% would be the fastest in every test.
Its place in each kind of test, requests per second, and what it costs to run
Place among the 31 services in each kind of test (1 is the fastest; at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Bun 1.4 | 12 | 3 | 2 | 4 | 14 | 3 | 4 | 15 | 1 |
| Deno 2.9 | 17 | 8 | 4 | 11 | 7 | 10 | 10 | 18 | 4 |
Requests per second (at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Bun 1.4 | 15,325 | 58,354 | 38,924 | 16,267 | 6,840 | 45,455 | 51,073 | 30,247 | 34,440 |
| Deno 2.9 | 14,889 | 56,615 | 35,710 | 16,042 | 8,273 | 40,023 | 46,033 | 25,768 | 32,349 |
What it costs to run
| Service | Most memory used MB | Memory when idle MB | First answer after ms | Image MB | Requests/s per CPU core | Lines: own + SQL |
|---|---|---|---|---|---|---|
| Bun 1.4 | 292 | 43.1 | 153 | 100 | 3,630 | 173 + 205 |
| Deno 2.9 | 553 | 90.0 | 167 | 70 | 3,549 | 176 + 205 |
Python
2 services. The fastest is FastAPI 0.165, at position 27 of 31 with a speed score of 29%.
↑ longer bar is betterHow fast each one is compared with the fastest service of all 31, averaged over all 44 tests. 100% would be the fastest in every test.
- 1FastAPI 0.16529%
- 2Django 6.117%
Its place in each kind of test, requests per second, and what it costs to run
Place among the 31 services in each kind of test (1 is the fastest; at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| FastAPI 0.165 | 27 | 26 | 27 | 27 | 13 | 27 | 27 | 28 | 26 |
| Django 6.1 | 29 | 30 | 30 | 30 | 30 | 30 | 30 | 30 | 30 |
Requests per second (at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| FastAPI 0.165 | 2,800 | 11,629 | 7,645 | 3,692 | 6,860 | 6,776 | 9,301 | 4,418 | 8,646 |
| Django 6.1 | 1,788 | 2,573 | 2,466 | 2,328 | 2,039 | 2,403 | 2,439 | 2,200 | 2,442 |
What it costs to run
| Service | Most memory used MB | Memory when idle MB | First answer after ms | Image MB | Requests/s per CPU core | Lines: own + SQL |
|---|---|---|---|---|---|---|
| FastAPI 0.165 | 303 | 188.9 | 600 | 62 | 783 | 152 + 205 |
| Django 6.1 | 769 | 133.6 | 373 | 67 | 432 | 252 + 205 |
PHP
2 services. The fastest is Swoole 6.2 (PHP), at position 18 of 31 with a speed score of 73%.
↑ longer bar is betterHow fast each one is compared with the fastest service of all 31, averaged over all 44 tests. 100% would be the fastest in every test.
| Service | Position | Speed score | Tests where it was the fastest | Runs on | How the API is made | Its code |
|---|---|---|---|---|---|---|
| Swoole 6.2 (PHP) | 18 of 31 | 73% | 8 of 44 | PHP 8.5 | hand-written, PDO | server.php |
| Laravel Octane 13.43 | 30 of 31 | 20% | 0 of 44 | PHP 8.5 | hand-written, on Swoole | api.php |
The Swoole service was corrected and run again after the first run, where its setup held it back. These are the corrected numbers. What happened.
Its place in each kind of test, requests per second, and what it costs to run
Place among the 31 services in each kind of test (1 is the fastest; at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Swoole 6.2 (PHP) | 19 | 22 | 21 | 8 | 16 | 22 | 21 | 20 | 21 |
| Laravel Octane 13.43 | 31 | 31 | 31 | 31 | 31 | 31 | 31 | 31 | 31 |
Requests per second (at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Swoole 6.2 (PHP) | 13,913 | 26,918 | 22,415 | 16,160 | 6,419 | 21,563 | 24,855 | 19,391 | 22,859 |
| Laravel Octane 13.43 | 1,527 | 1,991 | 1,842 | 1,723 | 1,374 | 1,639 | 1,878 | 1,782 | 1,848 |
What it costs to run
| Service | Most memory used MB | Memory when idle MB | First answer after ms | Image MB | Requests/s per CPU core | Lines: own + SQL |
|---|---|---|---|---|---|---|
| Swoole 6.2 (PHP) | 146 | 14.4 | 111 | 220 | 2,861 | 295 + 205 |
| Laravel Octane 13.43 | 977 | 452.5 | 1,166 | 253 | 366 | 99 + 205 |
PostgREST
1 service. The fastest is PostgREST 16.6, at position 26 of 31 with a speed score of 33%.
↑ longer bar is betterHow fast each one is compared with the fastest service of all 31, averaged over all 44 tests. 100% would be the fastest in every test.
- 1PostgREST 16.633%
| Service | Position | Speed score | Tests where it was the fastest | Runs on | How the API is made | Its code |
|---|---|---|---|---|---|---|
| PostgREST 16.6 | 26 of 31 | 33% | 0 of 44 | Haskell | generated from the schema | postgrest.conf |
PostgREST was corrected and run again after the first run, where its setup held it back. These are the corrected numbers. What happened.
Its place in each kind of test, requests per second, and what it costs to run
Place among the 31 services in each kind of test (1 is the fastest; at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| PostgREST 16.6 | 26 | 28 | 28 | 26 | 23 | 28 | 28 | 27 | 28 |
Requests per second (at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| PostgREST 16.6 | 4,027 | 7,655 | 6,730 | 6,267 | 4,211 | 4,143 | 7,202 | 6,290 | 6,400 |
What it costs to run
| Service | Most memory used MB | Memory when idle MB | First answer after ms | Image MB | Requests/s per CPU core | Lines: own + SQL |
|---|---|---|---|---|---|---|
| PostgREST 16.6 | 142 | 7.2 | 165 | 20 | 1,508 | 16 + 205 |
GraphQL
2 services. The fastest is Hasura 2.50 (GraphQL), at position 28 of 31 with a speed score of 26%.
↑ longer bar is betterHow fast each one is compared with the fastest service of all 31, averaged over all 44 tests. 100% would be the fastest in every test.
| Service | Position | Speed score | Tests where it was the fastest | Runs on | How the API is made | Its code |
|---|---|---|---|---|---|---|
| Hasura 2.50 (GraphQL) | 28 of 31 | 26% | 0 of 44 | Haskell | generated, GraphQL | databases.yaml |
| PostGraphile 5.2 (GraphQL) | 29 of 31 | 20% | 0 of 44 | Node.js 26 | generated, GraphQL | graphile.config.mjs |
Its place in each kind of test, requests per second, and what it costs to run
Place among the 31 services in each kind of test (1 is the fastest; at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Hasura 2.50 (GraphQL) | 30 | 29 | 29 | 28 | 21 | 29 | 29 | 29 | 29 |
| PostGraphile 5.2 (GraphQL) | 28 | 27 | 26 | 29 | 20 | 26 | 26 | 26 | 27 |
Requests per second (at the main test of each kind)
| Service | Data types | Minimal request | POST body | Nested JSON | Large payload | Many parameters | Table lookup | Table list page | Table insert |
|---|---|---|---|---|---|---|---|---|---|
| Hasura 2.50 (GraphQL) | 1,767 | 3,824 | 3,376 | 3,543 | 4,439 | 2,873 | 3,243 | 3,147 | 2,535 |
| PostGraphile 5.2 (GraphQL) | 2,465 | 11,505 | 8,782 | 2,640 | 5,549 | 9,483 | 10,211 | 6,559 | 7,429 |
What it costs to run
| Service | Most memory used MB | Memory when idle MB | First answer after ms | Image MB | Requests/s per CPU core | Lines: own + SQL |
|---|---|---|---|---|---|---|
| Hasura 2.50 (GraphQL) | 2,571 | 159.1 | 2,365 | 206 | 942 | 86 + 277 |
| PostGraphile 5.2 (GraphQL) | 1,309 | 372.2 | 943 | 220 | 832 | 44 + 205 |
The code that ran
Every link below goes to the file as it was when the round ran (branch 202611241439 of the benchmark repository). For a hand-written service, the first link is the one file with all nine endpoints; read two of them side by side to see what each platform asks of you for the same job. For a generated API it is the configuration, because there is no endpoint code.
If you think a service is set up unfairly or could be written better, that file is where to show it: pull requests are welcome, and the next round will run whatever is in the repository.
What all of them call: the functions in init.sql and tables.sql. What calls them: the k6 scripts in _k6/scripts. How they are wired together: docker-compose.yml and the CPU layout in docker-compose.server-48.yml. How to run it yourself: Data and Method.
"Lines: own + SQL" is the non-blank lines of the service's own code and configuration, plus the SQL it needs; see Code you write.
The main tests: data types: 100 users, 10 rows; minimal request: 100 users; post body: 50 users, 10 rows; nested json: 50 users, depth 1; large payload: 25 users, 100 KB; many parameters: 50 users; table lookup: 50 users; table list page: 50 users; table insert: 50 users.
Previous: ← Resources · Next: .NET 10 and .NET 11 →