Skip to content

Instantly share code, notes, and snippets.

@brdloush
Created November 4, 2015 16:49
Show Gist options
  • Save brdloush/38c615732acfb5828b51 to your computer and use it in GitHub Desktop.
Save brdloush/38c615732acfb5828b51 to your computer and use it in GitHub Desktop.
performance difference between thymeleaf 3.0.0.BETA01 vs 3.0.0-SNAPSHOT
git clone git@github.com:brdloush/thymeleaf-perf-issue.git
1) 3.0.0-BETA01:
mvn -Dthymeleaf=3.0.0.BETA01 clean test
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestPerfProblem
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Running test: DRY RUN with template : thymeleaf-template
- Total time spent processing 100 iterations: 30350 ms
- Processing of single page takes: 303 ms
Test finished: DRY RUN with template : thymeleaf-template
Running test: MEASURING RUN with template : thymeleaf-template
- Total time spent processing 100 iterations: 31274 ms
- Processing of single page takes: 312 ms
Test finished: MEASURING RUN with template : thymeleaf-template
Running test: DRY RUN with template : thymeleaf-template-noremove
- Total time spent processing 100 iterations: 1314 ms
- Processing of single page takes: 13 ms
Test finished: DRY RUN with template : thymeleaf-template-noremove
Running test: MEASURING RUN with template : thymeleaf-template-noremove
- Total time spent processing 100 iterations: 793 ms
- Processing of single page takes: 7 ms
Test finished: MEASURING RUN with template : thymeleaf-template-noremove
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 63.909 sec - in TestPerfProblem
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
--------------------------------------
2) 3.0.0-SNAPSHOT:
mvn -Dthymeleaf=3.0.0-SNAPSHOT clean test
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestPerfProblem
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Running test: DRY RUN with template : thymeleaf-template
- Total time spent processing 100 iterations: 1241 ms
- Processing of single page takes: 12 ms
Test finished: DRY RUN with template : thymeleaf-template
Running test: MEASURING RUN with template : thymeleaf-template
- Total time spent processing 100 iterations: 413 ms
- Processing of single page takes: 4 ms
Test finished: MEASURING RUN with template : thymeleaf-template
Running test: DRY RUN with template : thymeleaf-template-noremove
- Total time spent processing 100 iterations: 235 ms
- Processing of single page takes: 2 ms
Test finished: DRY RUN with template : thymeleaf-template-noremove
Running test: MEASURING RUN with template : thymeleaf-template-noremove
- Total time spent processing 100 iterations: 142 ms
- Processing of single page takes: 1 ms
Test finished: MEASURING RUN with template : thymeleaf-template-noremove
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.131 sec - in TestPerfProblem
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment