frameworks/Java/tadx/README.en.md
Tad.x is a Java web framework project for benchmarking, part of the FrameworkBenchmarks project, designed to test the performance of different web frameworks.
tadx/
├── src/main/java/io/tadx/benchmark/
│ ├── Application.java # Project entry point
│ ├── controller/ # Controller classes
│ ├── entity/ # Database entity classes
│ └── route_mapper/ # Route mapping implementations
├── src/main/resources/ # Resource files
│ ├── application.yaml # Configuration file
│ └── templates/ # Template files
├── build.gradle # Gradle build configuration
├── settings.gradle # Gradle settings
└── tadx.dockerfile # Docker deployment configuration
plainText
The project implements the following benchmark test types:
| Test Type | Route | Implementation Class | Description |
|---|---|---|---|
| JSON | /json | JsonRouteMapper.java | Returns a simple JSON response |
| PLAINTEXT | /plaintext | PlainTextRouteMapper.java | Returns a simple text response |
| DB | /db | DbRouteMapper_Postgresql.java | Single database query |
| QUERY | /query | QueriesRouteMapper1_Postgresql.java | Multiple database queries |
| CACHED QUERY | /cached_query | CachedQueriesMapper3.java | Caches query results |
| UPDATE | /update | UpdateMapper.java | Database update operations |
| FORTUNES | /fortunes | FortunesRouteMapper1.java | Template rendering test |
@RouteMapping annotation to define routesRouteMapper interface implementationWorld and Fortune entity classes mapping to database tablesApplication.javaapplication.yaml: Spring Boot application configurationbenchmark_config.json: Benchmark configurationhttp://localhost:8000/plaintext
http://localhost:8000/query?queries=
http://localhost:8000/cached_query?queries=
http://localhost:8000/update?queries=