3 <script src=
"../resources/runner.js"></script>
4 <p><a href=
"#">Click here to start
</a></p>
6 var link
= document
.getElementsByTagName('a')[0];
8 var kIteratonsPerTest
= 100000;
10 link
.addEventListener('click', function(event
) {
11 link
.textContent
= '';
13 event
.preventDefault();
15 PerfTestRunner
.measureRunsPerSecond({
16 description
: "Measures performance of repeatedly accessing the event object within an event handler.",
19 for (var x
= 0; x
< kIteratonsPerTest
; x
++)
26 if (window
.eventSender
) {
27 eventSender
.mouseMoveTo(link
.offsetLeft
+ 5, link
.offsetTop
+ 5);
28 eventSender
.mouseDown();
29 eventSender
.mouseUp();