Files
WebODF/programs/benchmark/src-index.html
T

60 lines
1.7 KiB
HTML
Raw Normal View History

2013-11-06 14:31:44 +11:00
<!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"/>
2013-11-06 14:31:44 +11:00
<script src="webodf.js" type="text/javascript"></script>
<script type="text/javascript">
runtime.currentDirectory = function () {
return "../../webodf/lib";
};
runtime.libraryPaths = function () {
return [
runtime.currentDirectory(),
"../../../webodf/lib"
];
};
</script>
<script src="require.js"></script>
2013-11-06 14:31:44 +11:00
<script type="text/javascript">
requirejs.config({
baseUrl: "js",
2013-11-06 14:31:44 +11:00
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();
})
2013-11-06 14:31:44 +11:00
</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>