https://github.com/thymeleaf/thymeleaf-benchmarks
Thymeleaf Development Benchmarks
https://github.com/thymeleaf/thymeleaf-benchmarks
Last synced: 6 months ago
JSON representation
Thymeleaf Development Benchmarks
- Host: GitHub
- URL: https://github.com/thymeleaf/thymeleaf-benchmarks
- Owner: thymeleaf
- License: apache-2.0
- Created: 2015-05-14T23:00:02.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-12-16T07:39:46.000Z (about 3 years ago)
- Last Synced: 2025-09-05T06:37:56.899Z (6 months ago)
- Language: Java
- Size: 322 KB
- Stars: 3
- Watchers: 5
- Forks: 3
- Open Issues: 22
-
Metadata Files:
- Readme: README.markdown
- Contributing: CONTRIBUTING.markdown
- License: LICENSE.txt
Awesome Lists containing this project
README
# Thymeleaf Benchmarks
* Benchmark 01: Using the templates and data from the GTVG example application, meant to test different versions of
Thymeleaf in non-Spring environments (i.e. using OGNL).
* Benchmark 02: Using the templates and data from the GTVG example application, meant to test different versions of
Thymeleaf in Spring 3.x-enabled environments.
* Benchmark 03: Using the templates and data from the GTVG example application, meant to test different versions of
Thymeleaf in Spring 4.x-enabled environments.
* Benchmark 04: Using the templates and data from the GTVG example application, meant to test different versions of
Thymeleaf in Spring 4.x-enabled environments with SpringEL compilation enabled (for Thymeleaf >= v3).
# How to use the Benchmarks
To create the benchmark artifacts:
```
mvn -P {version} clean compile package
```
(Currently available version profiles are: `2.1.4`, `3.0.0`)
To execute jmh benchmarks with CSV output:
```
java -jar target/thymeleaf-benchmarkXX.jar {BenchmarkName01 BenchmarkName02 ...}? -rf csv -rff benchmarkoutput.csv
```
### Plotting results
To install gnuplot using brew:
```
$ brew install gnuplot --with-cairo
```
In order to do the plotting, combine the several `.csv` files output from the benchmark executions into one
called `thymeleaf-benchmarks.csv` (preferrably changing the names in the first column to smaller, more
displayable names) and place it in the projects root folder. Then execute:
```
$ gnuplot thymeleaf-benchmarks.plot
```
This should create a file called `thymeleaf-benchmarks.png` containing the results graph.