Implementation
Spring Boot
Spring Boot 4.1.2 · Java · Full-stack frameworks · ranked
frameworks/spring-boot on GitHub
Scores
| Category | Position | Score | ± |
|---|---|---|---|
| Hello world | 9 | 0.21* | ±31.9% |
| Database | 8–10 | 0.67* | ±5.2% |
| Application | 8 | 0.43* | ±15.7% |
| Memory (high-water mark) | 14 | 0.14 | ±9.5% |
| Startup | 14 | 0.18 | ±20.9% |
Runner CPUs: EPYC 9V74, EPYC 7763, EPYC 9V74
Settings
- Runtime
- Java 25 (Eclipse Temurin 25.0.5 JRE), layered executable jar, no JVM flags
- Server
- Spring MVC on embedded Tomcat 11 (the starter's default)
- Workers
- Tomcat's default request thread pool (up to 200 threads); JVM ergonomics for 2 vCPUs and 2 GiB
- Database layer
- Spring Data JPA (Hibernate 7.4), HikariCP pool of 16 connections
- Templates
- Thymeleaf 3.1
- Logging
- none per request (Tomcat's access log is off by default); start-up log at INFO
- Dependency source
- –
- Status
- measured
Application endpoints: mechanisms
- Validation
- @PathVariable int, @RequestParam with @Min/@Max (Spring MVC method validation), @Valid @RequestBody and @Valid @ModelAttribute records (spring-boot-starter-validation): 400
- CSRF
- token (built-in): Spring Security CSRF protection (token in the HttpSession, XOR-masked _csrf field added by Thymeleaf's th:action; a garbled token answers 403 instead of 7.1.2's 500)
- Session store
- memory (built-in): Spring Security form login, SecurityContext in Tomcat's in-memory HttpSession
Tier 1 endpoints
| Endpoint | req/s | vs Axum | Efficiency (req/CPU-s) | p99 (ms) | Errors | Limits |
|---|---|---|---|---|---|---|
| /text | 35,766 (18,794–43,485) | 0.22 | 18,112 | 16.77 | 0 | |
| /json | 38,325 (27,183–46,706) | 0.25 | 19,436 | 19.37 | 0 | |
| /db-single | 8,611 (5,459–10,367) | 0.50 | 4,312 | 94.66 | 0 | |
| /html | 26,782 (10,559–30,371) | 0.17 | 13,469 | 57.39 | 0 | |
| /queries?queries=20 | 1,354 (726–1,460) | 1.30 | 712 | 199.87 | 0 | PostgreSQL-bound 11/15 |
| /fortunes | 4,036 (2,769–4,359) | 0.16 | 2,022 | 171.73 | 0 | |
| GET /world/{id} | 10,204 (6,764–12,386) | 0.61 | 5,130 | 71.39 | 0 | |
| GET /worlds | 8,130 (5,885–9,340) | 0.65 | 4,080 | 93.04 | 0 | |
| POST /form | 6,666 (4,273–7,376) | 0.08 | 3,344 | 304.09 | 0 | |
| GET /me | 10,137 (6,046–10,855) | 1.14 | 5,085 | 68.49 | 0 | |
| /updates?queries=20 | 707 (459–758) | 1.54 | 714 | 336.91 | 0 | PostgreSQL-bound 15/15 |
| PUT /world/{id} | 8,127 (4,907–8,930) | 0.59 | 4,148 | 102.26 | 0 | PostgreSQL-bound 8/15 |
Measured versions
HikariCP7.0.2hibernate-core7.4.13.Finalhibernate-validator9.1.5.Finaljackson-databind3.1.7java25.0.5+8postgresql42.7.14spring-boot4.1.2spring-data-jpa4.1.2spring-security-web7.1.2spring-webmvc7.0.10thymeleaf3.1.5.RELEASEtomcat-embed-core11.0.27
Runner jobs
| Job | CPU model | Rounds | Status |
|---|---|---|---|
| 1 | EPYC 9V74 | 5 | measured |
| 2 | EPYC 7763 | 5 | measured |
| 3 | EPYC 9V74 | 5 | measured |