<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>65797</bug_id>
          
          <creation_ts>2011-08-05 16:49:28 -0700</creation_ts>
          <short_desc>nrwt takes a long time to start on Mac</short_desc>
          <delta_ts>2012-06-08 17:02:31 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>64491</blocked>
    
    <blocked>65268</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>447478</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-05 16:49:28 -0700</bug_when>
    <thetext>Starting new-run-webkit-tests take a really long time even if it was running one child process.  Compare the following two commands:
Tools/Scripts/old-run-webkit-tests --debug LayoutTests/editing/undo
Tools/Scripts/new-run-webkit-tests --debug LayoutTests/editing/undo

The latter spends as much as time as the former just to spin up DRT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447480</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-08-05 17:02:59 -0700</bug_when>
    <thetext>Yeah, this is an important area for us to improve.  For example, we always spin up the HTTP and WebSocket servers, even when they&apos;re not needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448064</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-08-08 10:08:05 -0700</bug_when>
    <thetext>Agreed.  Thank you for the report.  I&apos;m focusing on getting the rest of the bots over to NRWT, but this is very high on my list once that&apos;s done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448213</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-08-08 13:15:55 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Yeah, this is an important area for us to improve.  For example, we always spin up the HTTP and WebSocket servers, even when they&apos;re not needed.

Really? That didn&apos;t used to be the case. (I believe we now start the WebSocket server if we only need the HTTP server -- which is a bug -- but we shouldn&apos;t start either if we don&apos;t need either).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448221</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-08-08 13:20:36 -0700</bug_when>
    <thetext>&gt; Really?

I think I was confused.  Pls ignore me.  :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482735</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-10-12 14:38:50 -0700</bug_when>
    <thetext>I recently profiled NRWT.  We spend all our time in the worker.  I don&apos;t yet have a good way to profile the worker processes, but will add one.  See also bug 65268.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482757</commentid>
    <comment_count>6</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-10-12 14:52:06 -0700</bug_when>
    <thetext>You can start by running with --worker-model=inline. I would be surprised if there was any significant performance difference between that and --worker-model=processes (for one child, obviously), but at least with the former you can profile the whole thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>645136</commentid>
    <comment_count>7</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-06-08 17:02:31 -0700</bug_when>
    <thetext>I think this is fixed now. I don&apos;t have a debug build handy, but using a release build and running your same test (LayoutTests/editing/undo), NRWT is faster than ORWT. (I was testing repeated runs of both tools, so everything in the filesystem was cached and total time was about 4.5 seconds to run all the tests).

Please re-open if you see something different.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>