https://bugs.webkit.org/show_bug.cgi?id=70855
Reviewed by Eric Seidel.
PerformanceTests:
Add a microbenchmark for wrapping event target.
* Bindings: Added.
* Bindings/event-target-wrapper.html: Added.
* Parser/resources/runner.js:
(runLoop):
- Let the user of the harness get a callback when the test is done.
Source/WebCore:
This patch sorts the file. I was not able to measure a performance
difference using the microbenchmark included with this patch.
* dom/EventTargetFactory.in:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@98412
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
--- /dev/null
+<!DOCTYPE html>
+<body>
+<pre id="log"></pre>
+<script src="../Parser/resources/runner.js"></script>
+<a href="#">Click here to start</a>
+<script>
+var link = document.getElementsByTagName('a')[0];
+var evt = null;
+var kIteratonsPerTest = 1000000;
+
+link.addEventListener('click', function(event) {
+ link.textContent = '';
+ window.evt = event;
+ event.preventDefault();
+
+ start(20, function() {
+ var e = window.evt;
+ for (var x = 0; x < kIteratonsPerTest; x++) {
+ e.target;
+ }
+ }, 10, function() {
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+ });
+
+ return false;
+}, false);
+
+if (window.layoutTestController) {
+ layoutTestController.waitUntilDone();
+ layoutTestController.dumpAsText();
+}
+
+if (window.eventSender) {
+ eventSender.mouseMoveTo(link.offsetLeft + 5, link.offsetTop + 5);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+}
+</script>
+</body>
+2011-10-25 Adam Barth <abarth@webkit.org>
+
+ EventTargetFactory.in is not sorted
+ https://bugs.webkit.org/show_bug.cgi?id=70855
+
+ Reviewed by Eric Seidel.
+
+ Add a microbenchmark for wrapping event target.
+
+ * Bindings: Added.
+ * Bindings/event-target-wrapper.html: Added.
+ * Parser/resources/runner.js:
+ (runLoop):
+ - Let the user of the harness get a callback when the test is done.
+
2011-10-04 Eric Seidel <eric@webkit.org>
Update html5-full-render.html to load the HTML5 spec incrementally, closer to how the browser would
window.setTimeout(run, 0);
} else {
logStatistics(times);
+ window.doneFunction();
}
}
runLoop()
}
-function start(runCount, runFunction, loopsPerRun) {
+function start(runCount, runFunction, loopsPerRun, doneFunction) {
window.runCount = runCount;
window.runFunction = runFunction;
window.loopsPerRun = loopsPerRun || 10;
+ window.doneFunction = doneFunction || function() {};
log("Running " + runCount + " times");
runLoop();
2011-10-25 Adam Barth <abarth@webkit.org>
+ EventTargetFactory.in is not sorted
+ https://bugs.webkit.org/show_bug.cgi?id=70855
+
+ Reviewed by Eric Seidel.
+
+ This patch sorts the file. I was not able to measure a performance
+ difference using the microbenchmark included with this patch.
+
+ * dom/EventTargetFactory.in:
+
+2011-10-25 Adam Barth <abarth@webkit.org>
+
Attempt to fix the Windows build. Windows mashes all these files into
one, which doesn't respect the compilation unit rules of C++.
namespace="EventTarget"
-EventSource
-MessagePort
-Node
-DOMWindow
-XMLHttpRequest
-XMLHttpRequestUpload
-DOMApplicationCache
-SVGElementInstance conditional=SVG
-Worker conditional=WORKERS
-DedicatedWorkerContext conditional=WORKERS
-SharedWorker conditional=SHARED_WORKERS
-SharedWorkerContext conditional=SHARED_WORKERS
AudioContext conditional=WEB_AUDIO
-JavaScriptAudioNode conditional=WEB_AUDIO
-WebSocket conditional=WEB_SOCKETS
-Notification conditional=NOTIFICATIONS
+DedicatedWorkerContext conditional=WORKERS
+DOMApplicationCache
+DOMWindow
+EventSource
FileReader conditional=BLOB
FileWriter conditional=FILE_SYSTEM
IDBDatabase conditional=INDEXED_DATABASE
IDBRequest conditional=INDEXED_DATABASE
IDBTransaction conditional=INDEXED_DATABASE
IDBVersionChangeRequest conditional=INDEXED_DATABASE
-MediaStream conditional=MEDIA_STREAM
+JavaScriptAudioNode conditional=WEB_AUDIO
LocalMediaStream conditional=MEDIA_STREAM
+MediaStream conditional=MEDIA_STREAM
+MessagePort
+Node
+Notification conditional=NOTIFICATIONS
PeerConnection conditional=MEDIA_STREAM
+SharedWorker conditional=SHARED_WORKERS
+SharedWorkerContext conditional=SHARED_WORKERS
+SVGElementInstance conditional=SVG
+WebSocket conditional=WEB_SOCKETS
+Worker conditional=WORKERS
+XMLHttpRequest
+XMLHttpRequestUpload