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: Mon, 2 May 2016 14:53:59 +1000 Lines: 14 Message-ID: References: <85vb2xgj2i.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de vsFIiO5/xzKm6Lpfz6Dd/gwrmKTumQvDlHDK47si8ovg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.092 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.03; 'subject:file': 0.07; 'cc:addr:python-list': 0.09; 'compute': 0.09; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'so)': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'message- id:@mail.gmail.com': 0.27; 'program,': 0.29; 'too.': 0.30; 'run': 0.33; 'received:google.com': 0.35; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'minimum': 0.38; 'test': 0.39; 'maximum': 0.61; 'more': 0.63; 'different': 0.63; 'times': 0.63; 'chrisa': 0.84; 'comparable': 0.84; 'subject:write': 0.84; 'to:none': 0.91; 'average': 0.93; 'story.': 0.96 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 :content-transfer-encoding; bh=1lgPFti2Z/Oplfir5u3a1kGLsH9uS9pZgh1aQ9Zvobo=; b=lcee38NNK3jPy7Py3acCYTbHS5UypX8V/MI0DihIuKgMoX1cw3SZHyLg3j9dRx743u rwT9m7AB7FfE6NQOHyZP/hA6cKgLQUWQFLctemcaP9ivHNYld6qQxoN9607hk1+NRLI0 yB692it+Mcb8tkixPtXtWNK1g0bmYjwRtpPnbRDhVqmygK3grXctOO1JbTzjUl159l4M Rx1iEmn2N7GzneyS6qiMpQj4y6BomDegAyYfIGXxDKp4ZRbffoeWrdBEEvjQJx/WNxd2 dpyOaRVZ9ElWfancdtCWSbWYM34Dgb1S5r7S5kDzNDhpauWBulPvG7e3Z+A2ckdxSwMQ PbIg== 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:content-transfer-encoding; bh=1lgPFti2Z/Oplfir5u3a1kGLsH9uS9pZgh1aQ9Zvobo=; b=D4nAln/3MJ125YSf0ypabXcVjKq5ptjtbw+dZmOC+xPQdTfYC6Z9MuykjbG9qdfe6R OlCmr7aSVvTRIoBUzpE0I7JW++tlXvqHBIp/96Z5INnzlfviNcquTjnw0Oiaev3oEaRP +DQUMkuKGo8iOzSf5+6/bYzczPY+k1DRMYZgc6rnelSDmkq+S5CfdYFCEsc48p4tBIxg gmpBbJBHAu6UzP2b14cCrfRQibHOzkVFCJXkIYm8fSRitB+ZFjk73rdS4nqS/QX0h68J RCDeBaXUqHck17zS6eGfgbVzwaiD65rBrCE/gVj4jZZIafuPxZY8G8bKHPetb3fieSDo Fh/A== X-Gm-Message-State: AOPr4FUTFconPTud1XSbOZ450W/ENAr/ezTKMzDULoWuUTlpf6uF5ROrsVImc9bG9AoRWn54fEIFwfIYX5PYTA== X-Received: by 10.50.40.100 with SMTP id w4mr18378731igk.92.1462164839232; Sun, 01 May 2016 21:53:59 -0700 (PDT) In-Reply-To: <85vb2xgj2i.fsf@benfinney.id.au> 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> Xref: csiph.com comp.lang.python:107974 On Mon, May 2, 2016 at 2:49 PM, Ben Finney wro= te: > One simple way to do that: Run the exact same test many times (say, > 10=E2=80=89000 or so) on the same machine, and then compute the average o= f all > the durations. > > Do the same for each different program, and then you may have more > meaningfully comparable measurements. And also find the minimum and maximum durations, too. Averages don't always tell the whole story. ChrisA