Back to Frameworkbenchmarks

Spring MVC Benchmarking Test

frameworks/Java/spring/README.md

32.2 KB
Original Source

Spring MVC Benchmarking Test

This is the Spring MVC portion of a benchmarking test suite comparing a variety of web development platforms.

An embedded undertow is used for the web server.

There are four implementations :

Plaintext Test

JSON Serialization Test

Database Query Test

Database Queries Test

Database Update Test

Template rendering Test

Versions

Test URLs

Plaintext Test

http://localhost:8080/plaintext

JSON Encoding Test

http://localhost:8080/json

Database Query Test

http://localhost:8080/db

Database Queries Test

http://localhost:8080/queries?queries=5

Database Update Test

http://localhost:8080/updates?queries=5

Template rendering Test

http://localhost:8080/fortunes

Build

jOOQ

The jOOQ version requires Java classes generated from the database schema into src/main/jooq/hello/db. In order to generate them, you need to run a postgresql container and then execute the Maven jooq-codegen:generate command:

bash
(../../../toolset/databases/postgres && docker run -p 5432:5432 --rm "$(docker build -q -f postgres.dockerfile .)")
bash
mvn jooq-codegen:generate