Skip to content

Tables: Lookups, List Pages and Inserts ​

Benchmark · November 2026 · Tables

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.
Highlight:

What these tests do ​

Three kinds of test that read and write real tables. The other six call functions that compute their result in memory, which isolates the framework; these three are what most endpoints of a real API do. They are new in this round.

  • Row by key: one row of a 500,000 row table, by primary key. Every request asks for a different row.
  • Page of a list: 20 rows of one category after a given id, through an index (keyset pagination). Every request asks for a different page.
  • Insert: one insert that returns the new row. The table is emptied before each test, so every service writes into a table of the same size.

Each is run at 50 and 200 users at the same time. Every service calls the same three functions, so the SQL that runs is the same for all. The data (54 MB with its indexes) fits in memory, as the hot data of a well-sized production database does.

The code that ran: the functions and the table in tables.sql, the load script lib/table.js, the statements of the NpgsqlRest SQL file services in _sql_files, and each service's own source, linked from Every Service, One Scorecard.

How to read the charts

  • A bar is requests answered per second. Longer is faster. The fastest service is at the top.
  • A "k6 limit" or "PG limit" tag means the load generator (k6, the tool that sends the requests) or the database ran out of CPU before the service did. That service could have gone faster than its bar shows.
  • The Highlight buttons above keep one platform highlighted in every chart of the series.

What the numbers say ​

  • The ranking on real tables is close to the ranking on functions. Go leads the lookup by key, with NpgsqlRest 4.1 (JIT, SQL files) third, 2% behind.
  • NpgsqlRest 4.1 is first on list pages, with its two JIT builds, ahead of hand-written .NET with plain Npgsql. Twenty typed rows per response is the shape of request it was optimized for.
  • Inserts are the most even of the three: 13 services are within 15% of the leader at 50 users. The database does more of the work, so the frameworks matter less.
  • The slow group is the same as everywhere else: PostgREST, Hasura, Django and Laravel Octane are between 1,878 and 7,202 requests per second on the lookup, where the leader does 54,910.

Of the 186 tests on this page, the service was out of CPU in 134, the load generator in 2, PostgreSQL in 0, and nothing in 50 (in those, the number of users set the pace, not a lack of CPU). A throughput number says how much a service can carry only where the service itself was out of CPU.

One row by primary key ​

Compare the services ​

Pick a test with the buttons. Choose the number of users, and what to look at: requests per second, how slow the slowest requests are, memory, or requests per CPU core. The chart starts on the main test of this kind (50 users), which the summary tables of the series use.

Users at the same time
Show
Requests per second: 50 users

↑ longer bar is betterHow many requests each service answered per second, with 50 users sending requests at the same time.

  1. 1Go 1.27 · net/http54,910req/s
  2. 2Gin 1.12 (Go)54,489req/s
  3. 3NpgsqlRest 4.1 JIT · SQL files53,981req/s
  4. 4Bun 1.451,073req/s
  5. 5NpgsqlRest 3.21 JIT · SQL files50,272req/s
  6. 6NpgsqlRest 3.21 JIT · functions49,233req/s
  7. 7NpgsqlRest 4.1 JIT · functions48,985req/s
  8. 8.NET 10 · plain Npgsql47,370req/s
  9. 9NpgsqlRest 4.1 AOT · SQL files46,059req/s
  10. 10Deno 2.946,033req/s
  11. 11NpgsqlRest 3.21 AOT · SQL files45,694req/s
  12. 12NpgsqlRest 3.21 AOT · functions45,404req/s
  13. 13NpgsqlRest 4.1 AOT · functions45,305req/s
  14. 14.NET 10 · Dapper45,103req/s
  15. 15.NET 11 · plain Npgsql44,322req/s
  16. 16.NET 11 · Dapper43,260req/s
  17. 17Axum 0.8 (Rust)41,821req/s
  18. 18Actix-web 4.20 (Rust)41,541req/s
  19. 19Spring Boot 4.2 (Java 25)35,283req/s
  20. 20Fastify 5.1233,821req/s
  21. 21Swoole 6.2 (PHP)24,855req/s
  22. 22Express 5.324,424req/s
  23. 23NestJS 12.622,433req/s
  24. 24.NET 10 · EF Core14,102req/s
  25. 25.NET 11 · EF Core14,039req/s
  26. 26PostGraphile 5.2 (GraphQL)10,211req/s
  27. 27FastAPI 0.1659,301req/s
  28. 28PostgREST 16.67,202req/s
  29. 29Hasura 2.50 (GraphQL)3,243req/s
  30. 30Django 6.12,439req/s
  31. 31Laravel Octane 13.431,878req/s

The code of this test:the script that sends the requests · the PostgreSQL function it calls · the same as a SQL file. Click a service's name (↗) to open its own code for this test.

At 50 users at the same time, Go 1.27 · net/http is first with 54,910 requests per second, 0.8% ahead of Gin 1.12 (Go). 5 of the 31 services are within 10% of the leader, and the slowest does 1,878.

The best of each platform ​

The fastest service of every platform in the main test (50 users). "Compared with the fastest" is its requests per second as a percentage of the service in first place.

PlatformIts fastest servicePlace among the 31Requests per secondCompared with the fastestIts code
GoGo 1.27 · net/http154,910100%main.go
NpgsqlRestNpgsqlRest 4.1 JIT · SQL files353,98198%appsettings.json
Bun & DenoBun 1.4451,07393%app.ts
.NET.NET 10 · plain Npgsql847,37086%Program.cs
RustAxum 0.8 (Rust)1741,82176%main.rs
JavaSpring Boot 4.2 (Java 25)1935,28364%Application.java
Node.jsFastify 5.122033,82162%app.js
PHPSwoole 6.2 (PHP)2124,85545%server.php
GraphQLPostGraphile 5.2 (GraphQL)2610,21119%graphile.config.mjs
PythonFastAPI 0.165279,30117%app.py
PostgRESTPostgREST 16.6287,20213%postgrest.conf

Every measurement of the main test ​

Latency, CPU, memory and time in PostgreSQL for all 31 services
#ServiceRequests/sMedian msp99 msCPU cores usedRequests/s per corePeak memory MBTime in PostgreSQLOut of CPU
1Go 1.27 · net/http54,9100.642.63.4316,011334%service
2Gin 1.12 (Go)54,4890.652.73.4615,755334%service
3NpgsqlRest 4.1 JIT · SQL files53,9810.672.73.3716,0391623%—
4Bun 1.451,0730.752.63.5214,5291524%service
5NpgsqlRest 3.21 JIT · SQL files50,2720.742.63.5714,0791873%service
6NpgsqlRest 3.21 JIT · functions49,2330.694.33.7513,1122473%service
7NpgsqlRest 4.1 JIT · functions48,9850.703.63.1215,7221633%—
8.NET 10 · plain Npgsql47,3700.744.33.7312,6861352%service
9NpgsqlRest 4.1 AOT · SQL files46,0590.813.23.3813,622893%—
10Deno 2.946,0330.862.23.6012,7733933%service
11NpgsqlRest 3.21 AOT · SQL files45,6940.842.63.5013,0511063%service
12NpgsqlRest 3.21 AOT · functions45,4040.852.53.6012,6221713%service
13NpgsqlRest 4.1 AOT · functions45,3050.833.03.4413,175873%service
14.NET 10 · Dapper45,1030.775.13.7611,9931462%service
15.NET 11 · plain Npgsql44,3220.843.53.2613,5971522%—
16.NET 11 · Dapper43,2600.883.43.3113,0661662%—
17Axum 0.8 (Rust)41,8211.001.93.5211,889213%service
18Actix-web 4.20 (Rust)41,5410.971.93.5511,700823%service
19Spring Boot 4.2 (Java 25)35,2831.024.03.729,4771,5934%service
20Fastify 5.1233,8211.302.53.639,3285292%service
21Swoole 6.2 (PHP)24,8551.812.33.726,6731402%service
22Express 5.324,4241.883.23.806,4246402%service
23NestJS 12.622,4332.063.43.795,9126972%service
24.NET 10 · EF Core14,1023.035.93.833,6852161%service
25.NET 11 · EF Core14,0392.4911.13.643,8532101%service
26PostGraphile 5.2 (GraphQL)10,2113.7911.93.822,6731,0431%service
27FastAPI 0.1659,3014.716.83.782,4602970%service
28PostgREST 16.67,2026.448.42.962,432801%—
29Hasura 2.50 (GraphQL)3,24315.0021.22.241,4491940%—
30Django 6.12,43919.3028.83.407174810%service
31Laravel Octane 13.431,87822.1951.63.914819210%service

"CPU cores used" is the average CPU of the service during the test (it may use 4). "Time in PostgreSQL" is the share of an average request that PostgreSQL spent executing the statement.

All tests of this kind ​

Requests per second of every service in every test of this kind. Each column is one test; a higher number is better.

Service50 users200 users
Go 1.27 · net/http54,91055,233
Gin 1.12 (Go)54,48954,887
NpgsqlRest 4.1 JIT · SQL files53,98153,638
Bun 1.451,07353,815
NpgsqlRest 3.21 JIT · SQL files50,27252,392
NpgsqlRest 3.21 JIT · functions49,23352,817
NpgsqlRest 4.1 JIT · functions48,98553,704
.NET 10 · plain Npgsql47,37052,946
NpgsqlRest 4.1 AOT · SQL files46,05946,906
Deno 2.946,03354,357
NpgsqlRest 3.21 AOT · SQL files45,69448,650
NpgsqlRest 3.21 AOT · functions45,40447,710
NpgsqlRest 4.1 AOT · functions45,30546,489
.NET 10 · Dapper45,10349,866
.NET 11 · plain Npgsql44,32246,823
.NET 11 · Dapper43,26044,198
Axum 0.8 (Rust)41,82148,503
Actix-web 4.20 (Rust)41,54146,740
Spring Boot 4.2 (Java 25)35,28333,999
Fastify 5.1233,82135,875
Swoole 6.2 (PHP)24,85525,354
Express 5.324,42425,775
NestJS 12.622,43323,944
.NET 10 · EF Core14,10214,801
.NET 11 · EF Core14,03915,028
PostGraphile 5.2 (GraphQL)10,2119,762
FastAPI 0.1659,3019,781
PostgREST 16.67,2026,531
Hasura 2.50 (GraphQL)3,2433,051
Django 6.12,4392,344
Laravel Octane 13.431,8781,904

Bold is the best of the column. ᵏ the load generator was out of CPU in that test and the service was not; ᵖ the same for PostgreSQL.

One page of a list (20 rows) ​

Compare the services ​

Pick a test with the buttons. Choose the number of users, and what to look at: requests per second, how slow the slowest requests are, memory, or requests per CPU core. The chart starts on the main test of this kind (50 users), which the summary tables of the series use.

Users at the same time
Show
Requests per second: 50 users

↑ longer bar is betterHow many requests each service answered per second, with 50 users sending requests at the same time.

  1. 1NpgsqlRest 4.1 JIT · SQL files38,217req/s
  2. 2NpgsqlRest 4.1 JIT · functions37,779req/s
  3. 3.NET 10 · plain Npgsql36,363req/s
  4. 4.NET 10 · Dapper34,617req/s
  5. 5NpgsqlRest 3.21 JIT · SQL files32,998req/s
  6. 6.NET 11 · plain Npgsql32,947req/s
  7. 7NpgsqlRest 3.21 JIT · functions32,672req/s
  8. 8NpgsqlRest 4.1 AOT · SQL files31,978req/s
  9. 9NpgsqlRest 4.1 AOT · functions31,911req/s
  10. 10Axum 0.8 (Rust)31,642req/s
  11. 11Actix-web 4.20 (Rust)31,039req/s
  12. 12NpgsqlRest 3.21 AOT · functions30,947req/s
  13. 13.NET 11 · Dapper30,672req/s
  14. 14NpgsqlRest 3.21 AOT · SQL files30,461req/s
  15. 15Bun 1.430,247req/s
  16. 16Gin 1.12 (Go)29,924req/s
  17. 17Go 1.27 · net/http29,588req/s
  18. 18Deno 2.925,768req/s
  19. 19Spring Boot 4.2 (Java 25)23,332req/s
  20. 20Swoole 6.2 (PHP)19,391req/s
  21. 21Fastify 5.1218,284req/s
  22. 22Express 5.315,013req/s
  23. 23NestJS 12.614,199req/s
  24. 24.NET 11 · EF Core12,987req/s
  25. 25.NET 10 · EF Core12,898req/s
  26. 26PostGraphile 5.2 (GraphQL)6,559req/s
  27. 27PostgREST 16.66,290req/s
  28. 28FastAPI 0.1654,418req/s
  29. 29Hasura 2.50 (GraphQL)3,147req/s
  30. 30Django 6.12,200req/s
  31. 31Laravel Octane 13.431,782req/s

The code of this test:the script that sends the requests · the PostgreSQL function it calls · the same as a SQL file. Click a service's name (↗) to open its own code for this test.

At 50 users at the same time, NpgsqlRest 4.1 JIT · SQL files is first with 38,217 requests per second, 1.2% ahead of NpgsqlRest 4.1 JIT · functions. 4 of the 31 services are within 10% of the leader, and the slowest does 1,782.

The best of each platform ​

The fastest service of every platform in the main test (50 users). "Compared with the fastest" is its requests per second as a percentage of the service in first place.

PlatformIts fastest servicePlace among the 31Requests per secondCompared with the fastestIts code
NpgsqlRestNpgsqlRest 4.1 JIT · SQL files138,217100%appsettings.json
.NET.NET 10 · plain Npgsql336,36395%Program.cs
RustAxum 0.8 (Rust)1031,64283%main.rs
Bun & DenoBun 1.41530,24779%app.ts
GoGin 1.12 (Go)1629,92478%main.go
JavaSpring Boot 4.2 (Java 25)1923,33261%Application.java
PHPSwoole 6.2 (PHP)2019,39151%server.php
Node.jsFastify 5.122118,28448%app.js
GraphQLPostGraphile 5.2 (GraphQL)266,55917%graphile.config.mjs
PostgRESTPostgREST 16.6276,29016%postgrest.conf
PythonFastAPI 0.165284,41812%app.py

Every measurement of the main test ​

Latency, CPU, memory and time in PostgreSQL for all 31 services
#ServiceRequests/sMedian msp99 msCPU cores usedRequests/s per corePeak memory MBTime in PostgreSQLOut of CPU
1NpgsqlRest 4.1 JIT · SQL files38,2170.883.73.2511,7651665%—
2NpgsqlRest 4.1 JIT · functions37,7790.903.73.2311,6981525%—
3.NET 10 · plain Npgsql36,3630.904.23.679,9031373%service
4.NET 10 · Dapper34,6171.023.83.559,7621542%service
5NpgsqlRest 3.21 JIT · SQL files32,9981.113.43.708,9132084%service
6.NET 11 · plain Npgsql32,9471.004.93.1610,4241642%—
7NpgsqlRest 3.21 JIT · functions32,6721.123.43.668,9162615%service
8NpgsqlRest 4.1 AOT · SQL files31,9781.154.03.429,353904%service
9NpgsqlRest 4.1 AOT · functions31,9111.163.93.449,284884%service
10Axum 0.8 (Rust)31,6421.253.03.558,907205%service
11Actix-web 4.20 (Rust)31,0391.263.03.429,086825%service
12NpgsqlRest 3.21 AOT · functions30,9471.213.33.548,7341214%service
13.NET 11 · Dapper30,6721.085.53.229,5221752%—
14NpgsqlRest 3.21 AOT · SQL files30,4611.154.93.718,2091044%service
15Bun 1.430,2471.174.03.648,3171595%service
16Gin 1.12 (Go)29,9241.154.63.508,539356%service
17Go 1.27 · net/http29,5881.174.53.528,418347%service
18Deno 2.925,7681.543.43.736,9073924%service
19Spring Boot 4.2 (Java 25)23,3321.645.03.766,2061,6035%service
20Swoole 6.2 (PHP)19,3912.353.23.745,1861393%service
21Fastify 5.1218,2842.433.73.774,8545423%service
22Express 5.315,0133.004.53.753,9996312%service
23NestJS 12.614,1993.194.83.763,7806903%service
24.NET 11 · EF Core12,9873.207.03.713,5032041%service
25.NET 10 · EF Core12,8983.335.93.843,3622171%service
26PostGraphile 5.2 (GraphQL)6,5595.2728.53.761,7429713%service
27PostgREST 16.66,2907.369.42.922,152792%—
28FastAPI 0.1654,41810.0514.13.811,1612140%service
29Hasura 2.50 (GraphQL)3,14715.6222.02.281,3822061%—
30Django 6.12,20021.1534.33.506292791%service
31Laravel Octane 13.431,78223.6354.73.924559510%service

"CPU cores used" is the average CPU of the service during the test (it may use 4). "Time in PostgreSQL" is the share of an average request that PostgreSQL spent executing the statement.

All tests of this kind ​

Requests per second of every service in every test of this kind. Each column is one test; a higher number is better.

Service50 users200 users
NpgsqlRest 4.1 JIT · SQL files38,21737,792ᵏ
NpgsqlRest 4.1 JIT · functions37,77937,877ᵏ
.NET 10 · plain Npgsql36,36337,599
.NET 10 · Dapper34,61734,485
NpgsqlRest 3.21 JIT · SQL files32,99833,523
.NET 11 · plain Npgsql32,94735,014
NpgsqlRest 3.21 JIT · functions32,67233,254
NpgsqlRest 4.1 AOT · SQL files31,97831,788
NpgsqlRest 4.1 AOT · functions31,91132,363
Axum 0.8 (Rust)31,64235,358
Actix-web 4.20 (Rust)31,03935,325
NpgsqlRest 3.21 AOT · functions30,94732,206
.NET 11 · Dapper30,67233,111
NpgsqlRest 3.21 AOT · SQL files30,46132,689
Bun 1.430,24731,730
Gin 1.12 (Go)29,92431,187
Go 1.27 · net/http29,58831,243
Deno 2.925,76828,718
Spring Boot 4.2 (Java 25)23,33222,467
Swoole 6.2 (PHP)19,39119,600
Fastify 5.1218,28418,751
Express 5.315,01315,464
NestJS 12.614,19914,959
.NET 11 · EF Core12,98713,428
.NET 10 · EF Core12,89813,019
PostGraphile 5.2 (GraphQL)6,5596,570
PostgREST 16.66,2905,659
FastAPI 0.1654,4184,542
Hasura 2.50 (GraphQL)3,1472,871
Django 6.12,2002,128
Laravel Octane 13.431,7821,790

Bold is the best of the column. ᵏ the load generator was out of CPU in that test and the service was not; ᵖ the same for PostgreSQL.

An insert that returns the row ​

Compare the services ​

Pick a test with the buttons. Choose the number of users, and what to look at: requests per second, how slow the slowest requests are, memory, or requests per CPU core. The chart starts on the main test of this kind (50 users), which the summary tables of the series use.

Users at the same time
Show
Requests per second: 50 users

↑ longer bar is betterHow many requests each service answered per second, with 50 users sending requests at the same time.

  1. 1Bun 1.434,440req/s
  2. 2Go 1.27 · net/http33,651req/s
  3. 3Axum 0.8 (Rust)32,789req/s
  4. 4Deno 2.932,349req/s
  5. 5NpgsqlRest 3.21 JIT · functions32,058req/s
  6. 6Actix-web 4.20 (Rust)31,955req/s
  7. 7NpgsqlRest 3.21 JIT · SQL files31,854req/s
  8. 8Gin 1.12 (Go)31,511req/s
  9. 9NpgsqlRest 4.1 JIT · SQL files30,878req/s
  10. 10NpgsqlRest 3.21 AOT · SQL files30,393req/s
  11. 11NpgsqlRest 3.21 AOT · functions30,288req/s
  12. 12NpgsqlRest 4.1 JIT · functions29,919req/s
  13. 13.NET 11 · Dapper29,424req/s
  14. 14.NET 10 · Dapper28,329req/s
  15. 15.NET 11 · plain Npgsql27,970req/s
  16. 16.NET 10 · plain Npgsql27,501req/s
  17. 17NpgsqlRest 4.1 AOT · SQL files27,403req/s
  18. 18NpgsqlRest 4.1 AOT · functions26,984req/s
  19. 19Fastify 5.1226,707req/s
  20. 20Spring Boot 4.2 (Java 25)25,583req/s
  21. 21Swoole 6.2 (PHP)22,859req/s
  22. 22Express 5.319,542req/s
  23. 23NestJS 12.617,964req/s
  24. 24.NET 11 · EF Core13,382req/s
  25. 25.NET 10 · EF Core12,848req/s
  26. 26FastAPI 0.1658,646req/s
  27. 27PostGraphile 5.2 (GraphQL)7,429req/s
  28. 28PostgREST 16.66,400req/s
  29. 29Hasura 2.50 (GraphQL)2,535req/s
  30. 30Django 6.12,442req/s
  31. 31Laravel Octane 13.431,848req/s

The code of this test:the script that sends the requests · the PostgreSQL function it calls · the same as a SQL file. Click a service's name (↗) to open its own code for this test.

At 50 users at the same time, Bun 1.4 is first with 34,440 requests per second, 2.3% ahead of Go 1.27 · net/http. 8 of the 31 services are within 10% of the leader, and the slowest does 1,848.

The best of each platform ​

The fastest service of every platform in the main test (50 users). "Compared with the fastest" is its requests per second as a percentage of the service in first place.

PlatformIts fastest servicePlace among the 31Requests per secondCompared with the fastestIts code
Bun & DenoBun 1.4134,440100%app.ts
GoGo 1.27 · net/http233,65198%main.go
RustAxum 0.8 (Rust)332,78995%main.rs
NpgsqlRestNpgsqlRest 3.21 JIT · functions532,05893%appsettings.json
.NET.NET 11 · Dapper1329,42485%Program.cs
Node.jsFastify 5.121926,70778%app.js
JavaSpring Boot 4.2 (Java 25)2025,58374%Application.java
PHPSwoole 6.2 (PHP)2122,85966%server.php
PythonFastAPI 0.165268,64625%app.py
GraphQLPostGraphile 5.2 (GraphQL)277,42922%graphile.config.mjs
PostgRESTPostgREST 16.6286,40019%postgrest.conf

Every measurement of the main test ​

Latency, CPU, memory and time in PostgreSQL for all 31 services
#ServiceRequests/sMedian msp99 msCPU cores usedRequests/s per corePeak memory MBTime in PostgreSQLOut of CPU
1Bun 1.434,4401.142.82.8712,0131553%—
2Go 1.27 · net/http33,6511.172.82.6612,633323%—
3Axum 0.8 (Rust)32,7891.242.43.0210,870233%—
4Deno 2.932,3491.262.52.9211,0633913%—
5NpgsqlRest 3.21 JIT · functions32,0581.222.73.1910,0502523%—
6Actix-web 4.20 (Rust)31,9551.282.33.0910,328323%—
7NpgsqlRest 3.21 JIT · SQL files31,8541.222.73.1410,1581751%—
8Gin 1.12 (Go)31,5111.292.82.5912,149323%—
9NpgsqlRest 4.1 JIT · SQL files30,8781.243.22.5012,3551541%—
10NpgsqlRest 3.21 AOT · SQL files30,3931.282.93.139,7261041%—
11NpgsqlRest 3.21 AOT · functions30,2881.292.93.159,6261143%—
12NpgsqlRest 4.1 JIT · functions29,9191.332.92.5511,7311573%—
13.NET 11 · Dapper29,4241.373.02.8510,3181434%—
14.NET 10 · Dapper28,3291.433.03.198,8741504%—
15.NET 11 · plain Npgsql27,9701.423.32.6510,5701533%—
16.NET 10 · plain Npgsql27,5011.473.13.049,0331354%—
17NpgsqlRest 4.1 AOT · SQL files27,4031.453.22.6110,505911%—
18NpgsqlRest 4.1 AOT · functions26,9841.513.12.789,701913%—
19Fastify 5.1226,7071.563.13.467,7275432%service
20Spring Boot 4.2 (Java 25)25,5831.662.83.198,0091,6133%—
21Swoole 6.2 (PHP)22,8591.792.93.606,3471422%service
22Express 5.319,5422.244.23.665,3376402%service
23NestJS 12.617,9642.414.43.614,9737002%service
24.NET 11 · EF Core13,3823.046.53.643,6722173%service
25.NET 10 · EF Core12,8482.9111.83.783,3992313%service
26FastAPI 0.1658,6465.048.03.712,3302970%service
27PostGraphile 5.2 (GraphQL)7,4295.2918.03.682,0219401%service
28PostgREST 16.66,4007.1413.32.882,223841%—
29Hasura 2.50 (GraphQL)2,53519.1125.62.579851990%—
30Django 6.12,44218.9833.23.467065060%service
31Laravel Octane 13.431,84823.0452.53.864789770%service

"CPU cores used" is the average CPU of the service during the test (it may use 4). "Time in PostgreSQL" is the share of an average request that PostgreSQL spent executing the statement.

All tests of this kind ​

Requests per second of every service in every test of this kind. Each column is one test; a higher number is better.

Service50 users200 users
Bun 1.434,44047,482
Go 1.27 · net/http33,65149,725
Axum 0.8 (Rust)32,78945,961
Deno 2.932,34948,030
NpgsqlRest 3.21 JIT · functions32,05845,908
Actix-web 4.20 (Rust)31,95543,303
NpgsqlRest 3.21 JIT · SQL files31,85444,754
Gin 1.12 (Go)31,51148,623
NpgsqlRest 4.1 JIT · SQL files30,87845,434
NpgsqlRest 3.21 AOT · SQL files30,39341,345
NpgsqlRest 3.21 AOT · functions30,28841,679
NpgsqlRest 4.1 JIT · functions29,91946,159
.NET 11 · Dapper29,42436,639
.NET 10 · Dapper28,32938,281
.NET 11 · plain Npgsql27,97036,384
.NET 10 · plain Npgsql27,50138,220
NpgsqlRest 4.1 AOT · SQL files27,40340,095
NpgsqlRest 4.1 AOT · functions26,98440,609
Fastify 5.1226,70730,099
Spring Boot 4.2 (Java 25)25,58328,235
Swoole 6.2 (PHP)22,85924,308
Express 5.319,54221,672
NestJS 12.617,96420,674
.NET 11 · EF Core13,38214,421
.NET 10 · EF Core12,84814,159
FastAPI 0.1658,6469,630
PostGraphile 5.2 (GraphQL)7,4297,891
PostgREST 16.66,4005,789
Hasura 2.50 (GraphQL)2,5352,343
Django 6.12,4422,321
Laravel Octane 13.431,8481,861

Bold is the best of the column. ᵏ the load generator was out of CPU in that test and the service was not; ᵖ the same for PostgreSQL.


Previous: ← Many Parameters · Next: Resources →

Comments