2016-06-01 10:04:56 -04:00
|
|
|
<!doctype html>
|
|
|
|
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2017-12-12 12:17:33 -05:00
|
|
|
<title>Scratch VM Benchmark</title>
|
|
|
|
<link rel="stylesheet" href="./benchmark.css" type="text/css" media="screen">
|
2016-06-01 10:04:56 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
2017-12-12 12:17:33 -05:00
|
|
|
<h2>Scratch VM Benchmark</h2>
|
2018-01-16 18:20:26 -05:00
|
|
|
<p class="description">
|
2017-12-12 12:17:33 -05:00
|
|
|
Welcome to the scratch-vm benchmark. This tool helps you profile a scratch
|
|
|
|
project. When you load the page, it:
|
2018-01-16 18:20:26 -05:00
|
|
|
<ol class="description">
|
2017-12-12 12:17:33 -05:00
|
|
|
<li>loads the default project and enables turbo mode
|
|
|
|
<li>runs the project for 4 seconds to warm up
|
|
|
|
<li>profiles for 6 seconds
|
|
|
|
<li>stops and reports
|
|
|
|
</ol>
|
|
|
|
</p>
|
2018-01-16 18:20:26 -05:00
|
|
|
<div class="run-form">
|
|
|
|
<input type="text" value="119615668">
|
|
|
|
<button class="run">run</button>
|
|
|
|
</div>
|
|
|
|
<p class="run-push">
|
2017-12-12 12:17:33 -05:00
|
|
|
<i>Try a different project, like `130041250`</i>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<canvas id="scratch-stage"></canvas><br />
|
|
|
|
|
|
|
|
<div class="loading">
|
|
|
|
<label>Loading:</label>
|
|
|
|
<span class="loading-complete">0</span> / <span class="loading-total">0</span>
|
|
|
|
</div>
|
|
|
|
<div class="profile-count-group">
|
|
|
|
<div class="profile-count">
|
|
|
|
<label>Percent of time worked:</label>
|
|
|
|
<span class="profile-count-value profile-count-amount-recorded">...</span>
|
|
|
|
</div>
|
|
|
|
<div class="profile-count">
|
|
|
|
<label>Steps looped:</label>
|
|
|
|
<span class="profile-count-value profile-count-steps-looped">...</span>
|
2016-06-01 10:18:08 -04:00
|
|
|
</div>
|
2017-12-12 12:17:33 -05:00
|
|
|
<div class="profile-count">
|
|
|
|
<label>Blocks executed:</label>
|
|
|
|
<span class="profile-count-value profile-count-blocks-executed">...</span>
|
|
|
|
</div>
|
2018-01-16 18:20:26 -05:00
|
|
|
<a class="share"><div class="profile-count">
|
|
|
|
<label>Share this report</label>
|
|
|
|
</div></a>
|
|
|
|
<a class="share" target="_parent">
|
|
|
|
<div class="profile-count">
|
|
|
|
<label>Run the full suite</label>
|
|
|
|
</div>
|
|
|
|
</a>
|
2017-12-12 12:17:33 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="profile-tables">
|
|
|
|
<table class="profile-count-frame-table" cellspacing="0">
|
|
|
|
<thead>
|
|
|
|
<tr class="profile-count-frame-head"><th>Frame</th><th>Self Time</th><th>Total Time</th><th>Executions</th></tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="profiler-count-running"><td colspan="4"></td></tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-08-31 12:28:44 -04:00
|
|
|
|
2017-12-12 12:17:33 -05:00
|
|
|
<table class="profile-count-opcode-table" cellspacing="0">
|
|
|
|
<thead>
|
|
|
|
<tr class="profile-count-opcode-head">
|
|
|
|
<th>opcode</th><th>Self Time</th><th>Total Time</th><th>Executions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="profiler-count-running"><td colspan="4"></td></tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2016-06-01 10:18:08 -04:00
|
|
|
|
2017-12-12 12:17:33 -05:00
|
|
|
<div id="blocks"></div>
|
2016-09-06 11:46:10 -04:00
|
|
|
|
2017-12-12 12:17:33 -05:00
|
|
|
<!-- FPS counter, Syntax highlighter, Blocks, Renderer -->
|
|
|
|
<script src="./vendor.js"></script>
|
|
|
|
<!-- Storage module -->
|
|
|
|
<script src="./scratch-storage.js"></script>
|
|
|
|
<!-- VM -->
|
|
|
|
<script src="./scratch-vm.js"></script>
|
|
|
|
<!-- Playground -->
|
|
|
|
<script src="./benchmark.js"></script>
|
2016-06-01 10:04:56 -04:00
|
|
|
</body>
|
|
|
|
</html>
|