<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add PerfAutoRun to automate browser based performance benchmarks(e.g. Speedometer and JetStream)"
   href="https://bugs.webkit.org/show_bug.cgi?id=144038#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add PerfAutoRun to automate browser based performance benchmarks(e.g. Speedometer and JetStream)"
   href="https://bugs.webkit.org/show_bug.cgi?id=144038">bug 144038</a>
              from <span class="vcard"><a class="email" href="mailto:cdumez&#64;apple.com" title="Chris Dumez &lt;cdumez&#64;apple.com&gt;"> <span class="fn">Chris Dumez</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=251306&amp;action=diff" name="attach_251306" title="Patch">attachment 251306</a> <a href="attachment.cgi?id=251306&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=251306&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=251306&amp;action=review</a>

Ryosuke is the right person to review this, just making a few initial comments.

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:12
&gt; ++        for (var i = 0; i &lt; benchmarks.length; ++ i) {</span >

no space between ++ and i

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:21
&gt; ++        </span >

Not needed.

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:28
&gt; ++        //submit result to server</span >

Missing space after //. Missing capital letter for Submit and missing '.' at the end of the sentence.

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:30
&gt; ++        var http = new XMLHttpRequest();</span >

We usually use xhr variable name for these rather than http I believe.

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:31
&gt; ++        var url = '/report';</span >

No need for this variable.

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:32
&gt; ++        http.open(&quot;POST&quot;, url, true);</span >

true can be omitted as async is the default.

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:39
&gt; ++        if(http.readyState == 4 &amp;&amp; http.status == 200) {</span >

xhr.readyState == XMLHttpRequest.DONE

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:40
&gt; ++                closeRequest = new XMLHttpRequest();</span >

missing var

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:41
&gt; ++                closeRequest.open(&quot;GET&quot;, '/shutdown', true);</span >

true can be omitted as async is the default.

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:56
&gt; ++ Copyright (C) 2014 Apple Inc. All rights reserved.</span >

2015?

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:95
&gt; ++        else</span >

else should be on previous line.

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Patches/JetStream.patch:109
&gt; ++    &lt;p class=&quot;summary&quot;&gt;JetStream is a JavaScript benchmark suite focused on the most advanced web applications. For more information, read the &lt;a href=&quot;in-depth.html&quot;&gt;in-depth analysis&lt;/a&gt;. Bigger scores are better.&lt;/p&gt;</span >

s/Bigger/Higher ?

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Utilities/HTTPHandle/SimpleHTTPHandle.py:59
&gt; +                            'Http Server is serving at port: %d',</span >

HTTP

<span class="quote">&gt; Tools/Scripts/PerfAutoRun/Utilities/PlatformHandle/OSXSafariHandle.py:60
&gt; +        '/Users/Leelour/Code/Webkit/OpenSource/WebKitBuild/Release/',</span >

?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>