base-benchmark.html revision 3fabb00ab96922fd2ed57b7d65f78351d8df5cde
17N/A<!DOCTYPE html>
17N/A<html lang="en">
911N/A<head>
17N/A <meta charset="utf-8">
17N/A <title>Benchmarks</title>
17N/A</head>
17N/A<body class="yui3-skin-sam">
17N/A
17N/A<p><button id="start">Start Benchmarks</button></p>
17N/A
17N/A<div id="log"></div>
17N/A
17N/A<applet code="nano" archive="http://localhost/benchmark/nano.jar" style="display: none;"></applet>
17N/A<script src="http://localhost/benchmark/benchmark.js"></script>
17N/A
17N/A<script src="/build/yui/yui.js"></script>
17N/A<script>
17N/Avar Y = YUI({
17N/A modules: {
17N/A
17N/A 'base-benchmark': {
17N/A fullpath: 'base-benchmark.js',
17N/A requires: ['dump', 'base']
17N/A },
17N/A
17N/A 'test-console': {
17N/A fullpath : '/common/tests/assets/test-console.js',
17N/A requires : ['console-filters'],
17N/A skinnable: true
17N/A },
17N/A
17N/A 'skin-sam-test-console': {
493N/A fullpath: '/common/tests/assets/test-console.css',
493N/A type : 'css'
17N/A }
17N/A },
493N/A
17N/A useBrowserConsole: false
911N/A}).use('base-benchmark', 'node-base', 'test-console', function (Y) {
911N/A var suite = Y.BenchmarkSuite,
911N/A start = Y.one('#start');
911N/A
17N/A suite.on('start', function () {
17N/A start.set('disabled', true);
17N/A Y.log('Starting benchmarks.');
17N/A });
493N/A
suite.on('cycle', function (ev, bench) {
Y.log(String(bench));
});
suite.on('complete', function () {
start.set('disabled', false);
Y.log('Finished.');
});
start.on('click', function () {
suite.run(true);
});
});
</script>
</body>
</html>