-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperf.html
More file actions
315 lines (285 loc) · 12.8 KB
/
Copy pathperf.html
File metadata and controls
315 lines (285 loc) · 12.8 KB
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- This is a generated file. Do not edit. -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Approximate time/memory usage for Knopflerfish startup">
<meta name="title" content="Knopflerfish performance test">
<title>Knopflerfish performance test</title>
<link href="css/knopflerfish2.3.2.css" type="text/css" rel="stylesheet">
<link rel="shortcut icon" href="images/favicon.png">
<script type="text/javascript" src="scripts/google-analytics.js"></script>
<script type="text/javascript" src="scripts/menu.js"></script>
<script type="text/javascript" src="scripts/current_release.js"></script>
</head>
<body>
<div id="main">
<a name="top"></a>
<div id="header">
<div id="header_logo">
<a href="index.html"><img src="images/kf300_black.png" border="0" alt="knopflerfish logo"></a>
</div>
<div id="header_ad">
<div class="header_stylish">
Open Source OSGi Service Platform Maintained by<br>
<a href="http://www.makewave.com">
<img style="margin-top: 4px;" src="images/makewave_logo.png" alt="Makewave" border="0">
</a>
</div>
</div>
<div class="break"></div>
<div id="header_menu">
<a class="button_closed" href="index.html">Home</a>
<a class="button_closed" href="news.html">News</a>
<a class="button_closed" href="download.html">Download</a>
<a class="button_open" href="documentation.html">Documentation</a>
<a class="button_closed" href="about.html">About</a>
</div>
</div>
<div id="leftmenu">
<form style="padding-left: 0px;" class="searchform" method="GET" action="http://www.google.com/search">
<input type="hidden" name="ie" value="UTF-8">
<input type="hidden" name="oe" value="UTF-8">
<input type="hidden" name="domains" value="www.knopflerfish.org">
<input type="hidden" name="sitesearch" value="www.knopflerfish.org">
<input TYPE="text" value="Search site" name="q" size="20" maxlength="255"
onFocus="clearText(this)" onBlur="clearText(this)"
class="searchfield">
</form>
<div id="menu_news"><div class="nrow">
<img src="images/arrow_closed.gif" alt="" onclick="setMenuById(this.parentNode.parentNode.id, 'toggle')">
<a class="nrow_closed" href="news.html">News</a></div>
<div class="nrow1_closed"><a href="news_archive.html">Archive</a></div>
<!-- <div class="nrow1_closed"><a href="http://www.knopflerfish.org/mailman/listinfo">Mailing lists</a></div> -->
<div class="nrow1_off_closed">Mailing lists</div>
</div>
<div id="menu_download"><div class="nrow"><img src="images/arrow_closed.gif" alt="" onclick="setMenuById(this.parentNode.parentNode.id, 'toggle')"><a class="nrow_closed" href="download.html">Download</a></div>
<div class="nrow1_closed"><a href="license.html">License</a></div>
<!--
<div class="nrow1_closed"><a href="/snapshots/">Nightly builds</a></div>
<div class="nrow1_closed"><a href="/snapshots/current_trunk/junit_grunt/index.xml">Nightly tests</a></div>
-->
<div class="nrow1_off_closed">Nightly builds (off)</div>
<div class="nrow1_off_closed">Nightly tests (off)</div>
<!-- <div class="nrow1_closed"><a href="/releases/current/osgi/jars/index.xml">Bundle repository</a></div> -->
<div class="nrow1_closed"><a href="/releases/current/osgi/jars/index.html"
onclick="currentReleasePath(this, '/osgi/jars/index.xml')"> Bundle repository</a></div>
<div class="nrow1_closed"><a href="git_info.html">Source code (git)</a></div>
<div class="nrow1_closed"><a href="archive.html">Archived releases</a></div>
<div class="nrow1_closed"><a href="maven.html">Maven repository</a></div>
</div>
<div id="menu_docs"><div class="nrow"><img src="images/arrow_open.gif" alt="" onclick="setMenuById(this.parentNode.parentNode.id, 'toggle')"><a class="nrow_open" href="documentation.html">Documentation</a></div>
<div class="nrow1_open"><a href="kf6_osgi_r6.html">About Knopflerfish 6</a></div>
<div class="nrow1_open"><a href="kf5_osgi_r5.html">About Knopflerfish 5</a></div>
<div class="nrow1_open"><a href="kf4_osgi_r4_v4.3.html">About Knopflerfish 4</a></div>
<div class="nrow1_open"><a href="kf3_osgi_r4_v4.2.html">About Knopflerfish 3</a></div>
<div class="nrow1_open"><a href="osgi_java_compatibility_guide.html">Java Compatability</a></div>
<!-- <div class="nrow1_open"><a href="/releases/current/docs/index.html">Manual (KF 6.0.0)</a></div> -->
<div class="nrow1_open"><a href="/releases/current/docs/index.html"
onclick="currentReleasePath(this, '/docs/index.html')">Manual (KF 6.0.0)</a></div>
<!--
<div class="nrow1_label_open">Shortcuts</div>
<div class="nrow1_indent_open"><a href="/releases/current/docs/installing.html">Installing</a></div>
<div class="nrow1_indent_open"><a href="/releases/current/docs/running.html">Running</a></div>
<div class="nrow1_indent_open"><a href="/releases/current/docs/building.html">Building</a></div>
<div class="nrow1_indent_open"><a href="/releases/current/docs/programming.html">Programming</a></div>
<div class="nrow1_indent_open"><a href="/releases/current/docs/testing.html">Testing</a></div>
-->
<!-- <div class="nrow1_open"><a href="/snapshots_trunk/current_trunk/docs/index.html">Manual (snapshot)</a></div> -->
<div class="nrow1_off_open">Manual (snapshot) (off)</a></div>
<div class="nrow1_open"><a href="tutorials.html">Tutorials</a></div>
<div class="nrow1_open"><a href="eclipse_plugin.html">Eclipse plugin</a></div>
</div>
<div id="menu_about"><div class="nrow"><img src="images/arrow_closed.gif" alt="" onclick="setMenuById(this.parentNode.parentNode.id, 'toggle')"><a class="nrow_closed" href="about.html">About</a></div>
<div class="nrow1_closed"><a href="history.html">History</a></div>
<div class="nrow1_closed"><a href="contacts.html">Contacts</a></div>
<div class="nrow1_closed"><a href="osgi-links.html">OSGi related links</a></div>
<div class="nrow1_closed"><a href="merchandise.html">T-shirt and stuff</a></div>
</div>
<div class="nrow"> </div>
<div class="nrow"><a href="https://github.com/knopflerfish/knopflerfish.org/issues">Issue Tracker <img border="0" alt="" src="images/extlink.gif"></a></div>
<!--
<div class="nrow"><a href="https://sourceforge.net/forum/forum.php?forum_id=328005">
Forum <img border="0" src="images/extlink.gif"alt="">
</a></div-->
<div class="nrow"><a href="http://knopflerfish.blogspot.com/">
Knopflerfish Blog <img border="0" src="images/extlink.gif"alt="">
</a></div>
<div class="makewave">
Maintained by<br>
<a href="http://www.makewave.com"><img src="images/makewave_logo_126x16.gif" alt="Makewave" border="0"></a><br>
<div class="makewave_2">
<a href="http://www.makewave.com/site.en/products/knopflerfish_pro_osgi.shtml">
Knopflerfish Pro<img border="0" alt="" src="images/extlink.gif"></a><br>
<a href="http://www.makewave.com/site.en/products/osgi_training.shtml">
OSGi Training<img border="0" alt="" src="images/extlink.gif"></a><br>
<a href="http://www.makewave.com/site.en/products/osgi_expert.shtml">
Professional Services<img border="0" alt="" src="images/extlink.gif"></a><br>
</div>
</div>
<div class="makewave">
Checkout Knopflerfish<br>
<a href="http://github.com/knopflerfish"><img src="images/github/GitHub_Logo-80px.png"
alt="Knopflerfish on GitHub" border="0"/></a>
</div>
<div class="makewave">
<a href="http://www.twitter.com/knopflerfish"><img src="http://twitter-badges.s3.amazonaws.com/follow_us-b.png" alt="Follow knopflerfish on Twitter" border="0"/></a>
</div>
</div>
<div id="mainblock">
<ul>
<li><a href="#how">How the test was performed</a>
<li><a href="#graph">Time and memory usage</a>
<li><a href="#table">Mean time and memory usage difference between methods</a>
<li><a href="#bundles">Bundle list in test setup</a>
</ul>
<a name="how"></a>
<h2>How the test was performed</h2>
The test was performed by
<ol>
<li>Launching the framework from a wrapper script. See <a href="https://github.com/knopflerfish/knopflerfish.org/tree/master/osgi/bundles_opt/timing_tester">timing_tester</a> bundle for source.
<li>Installing and starting a set of "typical bundles". See <a href="#bundles">bundle list</a> for exact bundles.
<li>Installing a special notification bundle.
<li>Measuring the time from the JVM is completely started until the
notification bundle is started.
<li>Measuring memory difference from the JVM is completely started until the
notification bundle is started.
<li>Repeating 1-5 multiple times.
</ol>
The test was performed on
<pre>
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
</pre>
The machine used for testing was a Dell X300, 1200 Mhz, 640 Mb, running Windows XP SP1. When started, the total amount of memory used by the JVM was
approximately 11 Mb, according to XP.
<a name="graph"></a>
<h2>Time and memory usage</h2>
<p>
A dot-graph of the test runs gives a the most accurate view of the different
behaviors. The horizontal axis represents time and the vertical axis memory and time.
<p>
<b>file storage with file: references</b> (yellow) often is faster than non-reference, but not always.
<b>Memory storage</b> (blue) is fast, but uses a lot of memory as expected.
Plain <b>non-reference file storage</b> (red) is most memory-efficient. This is because jar files are copied, unpacked and only resources actually used will be loaded into memory.
</p>
<p>
The full images can be viewed by clicking on the graphs.
</p>
<table>
<tr>
<td>
Startup time
<br>
<a href="images/time.png"><img src="images/time_256.gif" alt="Time graph"></a>
</td>
<td>
Memory usage<br>
<a href="images/mem.png"><img src="images/mem_256.gif" alt="Memory graph"></a>
</td>
<td>
<br>
<img src="images/legend.gif" alt="color legend">
<p><i>These images were generated from the text file <a href="perf_log.csv">perf_log.csv</a>,
using Spotfire DecisionSite</i>
</p>
</td>
</tr>
</table>
<p>
<b>Note 1</b>: Memory is <b>differences in heap memory</b>, not disk usage. The intention with the file: reference method is to avoid copying a bundle file to another place in the file system. Disk usage is not measured by these tests.<br>
</p>
<p>
<b>Note 2</b>: The JVM native startup time is not included in
the measurements. All timing is done inside of the JVM itself.
</p>
<p>
<b>Note</b>: Since the memory usage values are <b>differences</b> in
heap space from JVM startup, until the FW has completed, not total heap
space used, the values are mostly useful for comparing bundle storage
methods. The total memory usage is not measured in these tests.
</p>
<a name="table"></a>
<h2>Mean time and memory usage</h2>
<p>
The table below lists the mean values of a test series of 27 runs. Note that
these are <b>approximate values</b>, and variations are to be expected.
</p>
<p>
<b>Note</b>: Memory usage is <b>differences</b> in heap space from
JVM startup, until the FW has completed, not total heap space used.
Thus, the values are mostly useful for comparing bundle storage methods,
not for determining total memory costs.
</p>
<table>
<tr>
<th><br></th>
<th>Startup time (ms)</th>
<th>Memory usage (kb)</th>
<th>Flags</th>
</tr>
<tr>
<td style="background-color: #ff0000; width: 20px;"><br></td>
<td>1000 ms</td>
<td>400 kb</td>
<td><pre>
-Dorg.knopflerfish.framework.bundlestorage=file
-Dorg.knopflerfish.framework.bundlestorage.file.reference=false
</pre>
</td>
</tr>
<tr>
<td style="background-color: #ffff00; width: 20px;"><br></td>
<td>900 ms</td>
<td>480 kb</td>
<td><pre>
-Dorg.knopflerfish.framework.bundlestorage=file
-Dorg.knopflerfish.framework.bundlestorage.file.reference=true
</pre>
</td>
</tr>
<tr>
<td style="background-color: #0000ff; width: 20px;"><br></td>
<td>550 ms</td>
<td>1000 kb</td>
<td><pre>
-Dorg.knopflerfish.framework.bundlestorage=memory
</pre>
</td>
</tr>
</table>
<a name="bundles"></a>
<h2>Bundle list in test setup</h2>
The following bundles were installed and started in all of the test runs.
Each test run was started with <code>-init</code>.
<pre>
log/log_all-1.0.0.jar
cm/cm_all-1.0.0.jar
console/console_all-1.0.0.jar
util/util-1.0.0.jar
jaxp/jaxp-1.0.jar
jsdk/jsdk-2.2.jar
device/device_all-1.0.0.jar
useradmin/useradmin_all-1.0.0.jar
http/http_all-1.0.0.jar
logcommands/logcommands-1.0.0.jar
cm_cmd/cm_cmd-1.0.0.jar
consoletty/consoletty-1.0.1.jar
consoletelnet/consoletelnet-1.0.jar
httproot/httproot-1.0.0.jar
</pre>
Additionally, the test bundle itself was started
<pre>
tester/tester-1.0.0.jar
</pre>
</div>
<div class="break"></div>
<div id="footer">
<div id="copyright">
Copyright © 2008-2016. The Knopflerfish Project. All rights reserved.
</div>
</div>
</div>
</body>
</html>