forked from thymeleaf/thymeleaf.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
benchmarking20.html
executable file
·171 lines (140 loc) · 6.21 KB
/
benchmarking20.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Benchmarking Thymeleaf 2.0 - Thymeleaf: java XML/XHTML/HTML5 template engine</title>
<link rel="stylesheet" type="text/css" media="all" href="css/thymeleaf.css" />
<link rel="shortcut icon" href="http://www.thymeleaf.org/favicon.ico" />
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
{lang:'en', parsetags:'explicit'}
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1276954-9']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript" src="sh/scripts/shCore.js"></script>
<script type="text/javascript" src="sh/scripts/shBrushXml.js"></script>
<script type="text/javascript" src="sh/scripts/shBrushJava.js"></script>
<link href="sh/styles/shCore.css" rel="stylesheet" type="text/css" />
<link href="sh/styles/shThemeThymeleaf.css" rel="stylesheet" type="text/css" />
</head>
<body lang="en" dir="ltr">
<div id="page">
<div id="menu">
<ul>
<li><a href="index.html" title="Home">Home</a></li>
<li><a href="features.html" title="Features">Features</a></li>
<li><a href="download.html" title="Download">Download</a></li>
<li><a href="documentation.html" title="Documentation">Documentation</a></li>
<li><a href="ecosystem.html" title="Ecosystem">Ecosystem</a></li>
<li><a href="http://forum.thymeleaf.org" title="User Forum">User Forum</a></li>
<li><a href="issuetracking.html" title="Issue Tracking">Issue Tracking</a></li>
</ul>
</div>
<div id="header">
<a href="index.html" title="Thymeleaf home"><img src="images/thymeleaflogonameverysmall.png" class="logo" alt="Thymeleaf Template Engine"/></a>
</div>
<div id="breadcrumb">
<a href="index.html">thymeleaf</a>
::
<a href="documentation.html">documentation</a>
::
<span class="current">benchmarking thymeleaf 2.0</span>
</div>
<div id="content">
<h1>Benchmarking Thymeleaf 2.0</h1>
<h2>Benchmark definition</h2>
<ul>
<li>Versions of Thymeleaf compared: <kbd>1.1.5</kbd> vs <kbd>2.0.0</kbd>.</li>
<li>Configuration:
<ul>
<li>Dell Vostro V131 (laptop), Intel Core i5, 8Gbytes RAM</li>
<li>Windows 7</li>
<li>Java 6 (Standard Oracle VM)</li>
<li>Tomcat 6.0 (launched from Maven 3)</li>
<li>Requests launched from the ApacheBench tool (<kbd>-c 25 -n 100000</kbd>)</li>
<li>Results collected using the <kbd>TIMER</kbd> log of Thymeleaf (measure only template engine execution)</li>
<li>All other logs set to WARN</li>
<li>Graphs created using averages of 1,000 executions for each point</li>
</ul>
</li>
<li>Tests:
<ul>
<li>1. GTVG Example Application (no Spring MVC), main page.
<li>2. GTVG Example Application (no Spring MVC), order details page for <kbd>orderId=2</kbd>.
<li>3. STSM Example Application (with Spring MVC), main page after adding one seedstarter for
<i>Thymus Vulgaris</i> with 10 seeds.</li>
</ul>
</li>
</ul>
<p>
All collected data can be obtained <a href="https://github.com/downloads/thymeleaf/thymeleaf-dist/BenchmarkingThymeleaf2.0.zip">here</a>.
</p>
<h2>Test 1</h2>
<p>
<i>GTVG Example Application (no Spring MVC), main page.</i>
</p>
<p>
Average execution times:
</p>
<ul>
<li><i>Thymeleaf 1.1.5</i>: 7494817.25 nanosecs - 7.49ms</li>
<li><i>Thymeleaf 2.0.0</i>: 0340849.58 nanosecs - 0.34ms</li>
</ul>
<a href="images/benchmarking20_gtvg_main.png"><img src="images/benchmarking20_gtvg_main.png" width="500" height="282" /></a>
<h2>Test 2</h2>
<p>
<i>GTVG Example Application (no Spring MVC), order details page for <kbd>orderId=2</kbd>.</i>
</p>
<p>
Average execution times:
</p>
<ul>
<li><i>Thymeleaf 1.1.5</i>: 2178234.04 nanosecs - 2.18ms</li>
<li><i>Thymeleaf 2.0.0</i>: 0558972.67 nanosecs - 0.56ms</li>
</ul>
<a href="images/benchmarking20_gtvg_orderdetails.png"><img src="images/benchmarking20_gtvg_orderdetails.png" width="500" height="282" /></a>
<h2>Test 3</h2>
<p>
<i>STSM Example Application (with Spring MVC), main page after adding one seedstarter for
"Thymus Vulgaris" with 10 seeds.</i>
</p>
<p>
Average execution times:
</p>
<ul>
<li><i>Thymeleaf 1.1.5 without cache</i>: 9316346.24 nanosecs - 9.32ms</li>
<li><i>Thymeleaf 2.0.0 without cache</i>: 2040028.45 nanosecs - 2.04ms</li>
<li><i>Thymeleaf 1.1.5 with cache</i>: 4190066.93 nanosecs - 4.19ms</li>
<li><i>Thymeleaf 2.0.0 with cache</i>: 1260279.69 nanosecs - 1.26ms</li>
</ul>
<a href="images/benchmarking20_stsm_seedstartermng.png"><img src="images/benchmarking20_stsm_seedstartermng.png" width="500" height="282" /></a>
</div>
<div id="footer">
<div id="googleplus">
<div id="plusone-div" class="plusone"></div>
<script type="text/javascript">
gapi.plusone.render('plusone-div',{"size": "small", "count": "true", "href": "http://www.thymeleaf.org"});
</script>
</div>
<div id="twitter">
<a href="http://twitter.com/thymeleaf" class="twitter-follow-button" data-show-count="false">Follow @thymeleaf</a>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
</div>
<div id="copy">
Copyright © The <a href="team.html">THYMELEAF Team</a>. See <a href="documentation.html">applicable licenses</a>.
</div>
</div>
</div>
<script type="text/javascript">
SyntaxHighlighter.all();
</script>
</body>
</html>