git://git.webkit.org
/
WebKit-https.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
runner.js in performance tests should define a class
[WebKit-https.git]
/
PerformanceTests
/
Mutation
/
inner-html.html
diff --git
a/PerformanceTests/Mutation/inner-html.html
b/PerformanceTests/Mutation/inner-html.html
index 15f608501a098897aca91c947fa67931641f9e68..3fa45a3f3798a27d2cfc4875a1a71981a91493d7 100644
(file)
--- a/
PerformanceTests/Mutation/inner-html.html
+++ b/
PerformanceTests/Mutation/inner-html.html
@@
-28,7
+28,7
@@
function listener(mutations) {
if (start) {
var time = Date.now() - start;
times.push(time);
if (start) {
var time = Date.now() - start;
times.push(time);
- log(time);
+
PerfTestRunner.
log(time);
}
if (numRuns-- >= 0) {
runAgain();
}
if (numRuns-- >= 0) {
runAgain();
@@
-36,20
+36,20
@@
function listener(mutations) {
for (var i = 0; i < 100; ++i)
sandbox.innerHTML = html;
} else {
for (var i = 0; i < 100; ++i)
sandbox.innerHTML = html;
} else {
- logStatistics(times);
+
PerfTestRunner.
logStatistics(times);
if (!observing) {
observer.observe(sandbox, {childList: true});
observing = true;
resetState();
if (!observing) {
observer.observe(sandbox, {childList: true});
observing = true;
resetState();
- log('\n------------\n');
- log('Running ' + numRuns + ' times with observation');
+
PerfTestRunner.
log('\n------------\n');
+
PerfTestRunner.
log('Running ' + numRuns + ' times with observation');
setTimeout(runAgain, 0);
}
}
}
resetState();
setTimeout(runAgain, 0);
}
}
}
resetState();
-log('Running ' + numRuns + ' times without observation');
+
PerfTestRunner.
log('Running ' + numRuns + ' times without observation');
window.addEventListener('load', runAgain);
</script>
</body>
window.addEventListener('load', runAgain);
</script>
</body>