index.html (2970B)
1 <!-- This Source Code Form is subject to the terms of the Mozilla Public 2 - License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 - You can obtain one at http://mozilla.org/MPL/2.0/. --> 4 5 <html> 6 <head> 7 <title>GC uBench</title> 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 9 10 <!-- Benchmark harness and UI --> 11 <script src="harness.js"></script> 12 <script src="perf.js"></script> 13 <script src="sequencer.js"></script> 14 <script src="ui.js"></script> 15 16 <!-- List of garbage-creating test loads --> 17 <script src="test_list.js"></script> 18 </head> 19 20 <body onload="onload()" onunload="onunload()"> 21 22 <canvas id="graph" width="980" height="320" style="padding-left:10px"></canvas> 23 <canvas id="memgraph" width="980" height="320" style="padding-left:10px"></canvas> 24 <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> 25 26 <hr> 27 28 <form> 29 <div id='track-sizes-div'> 30 <input id='track-sizes' type='checkbox' onclick="trackHeapSizes(this.checked)"> 31 <label for='track-sizes'>Show heap size graph</label> 32 </div> 33 34 <div> 35 <input type="checkbox" id="do-graph" onchange="onUpdateDisplayChanged()" checked></input> 36 <label for='do-graph'>Update display</label> 37 </div> 38 39 <div> 40 <input type="checkbox" id="do-load" onchange="onDoLoadChange()" checked></input> 41 <label for='do-load'>Run allocation load</label> 42 </div> 43 44 <div> 45 <label for='test-selection'>Allocation load:</label> 46 <select id="test-selection" required onchange="onLoadChange()"></select> 47 <span id="load-running">(init)</span> 48 </div> 49 50 <div> 51 <label for='garbage-per-frame'> Garbage items per frame:</label> 52 <input type="text" id="garbage-per-frame" size="8" value="8K" 53 onchange="garbage_per_frame_changed()"></input> 54 </div> 55 56 <div> 57 <label for='garbage-piles'> Garbage piles:</label> 58 <input type="text" id="garbage-piles" size="8" value="8" 59 onchange="garbage_piles_changed()"></input> 60 </div> 61 </form> 62 63 <hr> 64 65 <form> 66 <label for='test-duration'>Duration:</label> 67 <input type="text" id="test-duration" size="3" value="8" onchange="duration_changed()"></input>s 68 <input type="button" id="test-one" value="Run Test" onclick="run_one_test()"></input> 69 <input type="button" id="test-all" value="Run All Tests" onclick="run_all_tests()"></input> 70 </form> 71 72 <div> 73 Time remaining: <span id="test-progress">(not running)</span> 74 </div 75 76 <div> 77 60 fps: <span id="pct60">n/a</span> 78 45 fps: <span id="pct45">n/a</span> 79 30 fps: <span id="pct30">n/a</span> 80 </div 81 82 <div id="results-Area"> 83 Test Results: 84 <div id="results-display" style="padding-left: 10px; border: 1px solid black;"></div> 85 </div> 86 87 </body> 88 </html>