blob: 4efbb75deff61c54e4ec0e6b3dff35117bffa1ac (
plain)
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
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this file,
- You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html>
<head>
<title>GC uBench</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Benchmark harness and UI -->
<script src="harness.js"></script>
<script src="perf.js"></script>
<script src="sequencer.js"></script>
<script src="ui.js"></script>
<!-- List of garbage-creating test loads -->
<script src="test_list.js"></script>
</head>
<body onload="onload()" onunload="onunload()">
<canvas id="graph" width="980" height="320" style="padding-left:10px"></canvas>
<canvas id="memgraph" width="980" height="320" style="padding-left:10px"></canvas>
<div id="memgraph-disabled" style="display: none"><i>No performance.mozMemory object available. If running Firefox, set dom.enable_memory_stats to True to see heap size info.</i></div>
<hr>
<form>
<div id='track-sizes-div'>
<input id='track-sizes' type='checkbox' onclick="trackHeapSizes(this.checked)">
<label for='track-sizes'>Show heap size graph</label>
</div>
<div>
<input type="checkbox" id="do-graph" onchange="onUpdateDisplayChanged()" checked></input>
<label for='do-graph'>Update display</label>
</div>
<div>
<input type="checkbox" id="do-load" onchange="onDoLoadChange()" checked></input>
<label for='do-load'>Run allocation load</label>
</div>
<div>
<label for='test-selection'>Allocation load:</label>
<select id="test-selection" required onchange="onLoadChange()"></select>
<span id="load-running">(init)</span>
</div>
<div>
<label for='garbage-per-frame'> Garbage items per frame:</label>
<input type="text" id="garbage-per-frame" size="8" value="8K"
onchange="garbage_per_frame_changed()"></input>
</div>
<div>
<label for='garbage-piles'> Garbage piles:</label>
<input type="text" id="garbage-piles" size="8" value="8"
onchange="garbage_piles_changed()"></input>
</div>
</form>
<hr>
<form>
<label for='test-duration'>Duration:</label>
<input type="text" id="test-duration" size="3" value="8" onchange="duration_changed()"></input>s
<input type="button" id="test-one" value="Run Test" onclick="run_one_test()"></input>
<input type="button" id="test-all" value="Run All Tests" onclick="run_all_tests()"></input>
</form>
<div>
Time remaining: <span id="test-progress">(not running)</span>
</div
<div>
60 fps: <span id="pct60">n/a</span>
45 fps: <span id="pct45">n/a</span>
30 fps: <span id="pct30">n/a</span>
</div
<div id="results-Area">
Test Results:
<div id="results-display" style="padding-left: 10px; border: 1px solid black;"></div>
</div>
</body>
</html>
|