@aurora.algorithm: How much faster is C# than Java? The same API built twice, Spring Boot 4.1.2 on Java 25 and ASP.NET Core 10 on C# 14, each in Docker on its own 4 cores of an i7-13700F, loaded by oha with 64 connections. Every number is a run you see on screen. - JSON response, a small object built from the id: ASP.NET Core 116,262 req/s, Spring Boot 103,536 (12% more for C#). - Postgres, two SELECT queries per request: ASP.NET Core 53,510 req/s, Spring Boot 43,546 (23% more for C#). By default the C# driver sends 4 statements per request, 2 of them DISCARD ALL resets; the tuned settings (Multiplexing on, Max Auto Prepare 4, Enlist off, write coalescing at 1000 bytes) bring it to 2, the same as Spring Boot. Both pools are 32. With Npgsql's default settings Spring Boot is ahead here, which the full video covers. - RAM with oha capped at 20,000 req/s for each app (oha -q 20000), docker stats: Spring Boot 373 MiB, ASP.NET Core 75 MiB. Music: "Electro Sketch" by Kevin MacLeod (incompetech.com), licensed under CC BY 4.0 (creativecommons.org/licenses/by/4.0/). Narration: AI voice (ElevenLabs). Affiliate link, I earn a commission: https://try.elevenlabs.io/aurora-algorithm

Aurora Algorithm
Aurora Algorithm
Open In TikTok:
Region: CA
Monday 09 November 2026 00:33:24 GMT
254
12
1
0

Music

Download

Comments

aurora.algorithm
Aurora Algorithm :
Both APIs and the load scripts are here: https://github.com/aurora-algorithm/java-vs-csharp-bench
2026-11-14 03:03:53
0
To see more videos from user @aurora.algorithm, please go to the Tikwm homepage.

Other Videos


About