Files
WebODF/programs/benchmark/src-index.html
T
Friedrich W. H. Kossebau 7f20c22627 Set runtime.currentDirectory/libraryPaths in faked webodf.js for out-of-source runs
Frees "production" code from adjustments for out-of-source developer code
2014-02-17 17:19:46 +01:00

49 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>WebODF performance and benchmarking tool</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="runner.css" rel="stylesheet"/>
<script src="webodf.js" type="text/javascript"></script>
<script src="require.js"></script>
<script type="text/javascript">
requirejs.config({
baseUrl: "js",
waitSeconds: 0 // some servers are reaaaallly slow unfortunately :/
});
requirejs.onError = function (err) {
console.log(err.requireType);
if (err.requireType === 'timeout') {
console.log('modules: ' + err.requireModules);
}
throw err;
};
require(["HTMLBenchmark"], function(HTMLBenchmark) {
var benchmark = new HTMLBenchmark();
benchmark.start();
})
</script>
</head>
<body>
<div id="loadingScreen">
<h1>Loading required files. This may take a while.</h1>
</div>
<div id="benchmarkView">
<h1>Benchmark results</h1>
<table id="benchmarkResults">
<thead>
<tr>
<td class="action">Action</td>
<td class="status">Status</td>
<td class="elapsed">Elapsed time (ms)</td>
</tr>
</thead>
</table>
</div>
<div id="documentView">
<div id="canvas"></div>
</div>
</body>
</html>