Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Fastest way to retrieve and write html contents to file Date: Tue, 3 May 2016 12:00:23 +1000 Lines: 22 Message-ID: References: <85vb2xgj2i.fsf@benfinney.id.au> <5726ee33$0$1617$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de b+GkJL/ZK5P/HzOCkpwdRg7prv5TgGu4lmcSDIKA76Xw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'linear': 0.07; 'subject:file': 0.07; 'cc:addr:python-list': 0.09; 'loop.': 0.09; '2016': 0.16; 'caching': 0.16; 'count;': 0.16; 'dfs': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'iteration': 0.16; 'loops': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'seconds,': 0.16; 'wrote:': 0.16; 'obviously': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'bit': 0.23; 'finished': 0.23; 'second': 0.24; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'message- id:@mail.gmail.com': 0.27; 'seconds': 0.31; 'tue,': 0.34; 'that,': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'expect': 0.37; 'times.': 0.38; "won't": 0.38; 'received:209': 0.38; 'test': 0.39; 'your': 0.60; 'close': 0.61; '100': 0.79; 'chrisa': 0.84; 'subject:write': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=P0SFFaVZz/V9BSRWwt66+7DCDvR9cq/caHq6CrMiKDc=; b=zZ4blUjFClx9hwgyDcg6pd/Uq6INum27rXrxKKNx+pudLbbJbCyx8vd6zocY5v6eGE WDzpWr93zwgF+jhg931Xj0dsLy1K776ctQfxb8G5L9qQgCdX73knDg0YagesU/hTe+9H WyO1ZFdTRh+bwGuVapk8VETEAJ2EiLbjWKHo3YvV5ttJ+Xlw3UoZbuwpI+HbyZFliVfV j1vGOuU8WGOSxODwlMPyEAlWPPVn5g+PBsCN6iHR6Dme7aB5qdXKMcqO7qp4I+jAV0jZ wfcet5BhZ2sHu3WEKT6Igy25IkJyKYLywA06Rde0+gv4BqpFbYFAAnPLMWNIfu5EiuFk ubIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=P0SFFaVZz/V9BSRWwt66+7DCDvR9cq/caHq6CrMiKDc=; b=FfeXlSCF/4bbxgXxHjqQWELIThDQWkA0nqJ0DcIArNUgazyb1OM6+gx7LtNbXYtWe2 boDXbz+MmYpoRsgvroBd8Bqk73al4Tb1RNlRw4QoTuvG6HyzPq09YmtTO/L+cPP8Utgu aiZ+Ka03VHuyiezB5x/8hAICOzkqcvl+DpAifxsao7LDKFs4WhexbOg41Z0Ibv7kwcA3 PB7vlgCbbJAzhM8U4VrGqIF3wAkVEQ1EWxyCxT854ngmSoblUSYYZt5859YzNh6Hsx7p LPkvla9lRpoQUSNPAVsMtfhsKVuJ0I1LBrKYm61dGbGcP0WlZ/K0tEI/2E5DjyVEUqhs JGuQ== X-Gm-Message-State: AOPr4FUJGNX/QBRpjxOA9IBsJ741rs+ra88Iks7Vm2Hhwu4KJcycquyxI7MD0DstldtvWegpdQKxAT7b4uiNPA== X-Received: by 10.107.169.13 with SMTP id s13mr311760ioe.19.1462240823502; Mon, 02 May 2016 19:00:23 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <85vb2xgj2i.fsf@benfinney.id.au> <5726ee33$0$1617$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:108041 On Tue, May 3, 2016 at 11:51 AM, DFS wrote: > On 5/2/2016 3:19 AM, Chris Angelico wrote: > >> There's an easier way to test if there's caching happening. Just crank >> the iterations up from 10 to 100 and see what happens to the times. If >> your numbers are perfectly fair, they should be perfectly linear in >> the iteration count; eg a 1.8 second ten-iteration loop should become >> an 18 second hundred-iteration loop. Obviously they won't be exactly >> that, but I would expect them to be reasonably close (eg 17-19 >> seconds, but not 2 seconds). > > > 100 loops > Finished VBScript in 3.953 seconds > Finished VBScript in 3.608 seconds > Finished VBScript in 3.610 seconds > > Bit of a per-loop speedup going from 10 to 100. How many seconds was it for 10 loops? ChrisA