Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107974

Re: Fastest way to retrieve and write html contents to file

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
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 <mailman.299.1462164842.32212.python-list@python.org> (permalink)
References <ng6jie$1ap$1@dont-email.me> <85vb2xgj2i.fsf@benfinney.id.au> <CAPTjJmoqm2QXeRmWg23PVQDe_3t+8VRY8qLUMRmB+tDfV=mK+A@mail.gmail.com>
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 <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAPTjJmoqm2QXeRmWg23PVQDe_3t+8VRY8qLUMRmB+tDfV=mK+A@mail.gmail.com>
X-Mailman-Original-References <ng6jie$1ap$1@dont-email.me> <85vb2xgj2i.fsf@benfinney.id.au>
Xref csiph.com comp.lang.python:107974

Show key headers only | View raw


On Mon, May 2, 2016 at 2:49 PM, Ben Finney <ben+python@benfinney.id.au> wrote:
> One simple way to do that: Run the exact same test many times (say,
> 10 000 or so) on the same machine, and then compute the average of 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-02 00:06 -0400
  Re: Fastest way to retrieve and write html contents to file Stephen Hansen <me+python@ixokai.io> - 2016-05-01 21:34 -0700
  Re: Fastest way to retrieve and write html contents to file Chris Angelico <rosuav@gmail.com> - 2016-05-02 14:40 +1000
    Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-02 00:50 -0400
      Re: Fastest way to retrieve and write html contents to file Stephen Hansen <me+python@ixokai.io> - 2016-05-01 22:00 -0700
        Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-02 01:04 -0400
          Re: Fastest way to retrieve and write html contents to file Chris Angelico <rosuav@gmail.com> - 2016-05-02 15:12 +1000
          Re: Fastest way to retrieve and write html contents to file Stephen Hansen <me+python@ixokai.io> - 2016-05-01 22:17 -0700
          Re: Fastest way to retrieve and write html contents to file Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-05-02 15:57 +1000
  Re: Fastest way to retrieve and write html contents to file Ben Finney <ben+python@benfinney.id.au> - 2016-05-02 14:49 +1000
    Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-02 01:00 -0400
      Re: Fastest way to retrieve and write html contents to file Stephen Hansen <me+python@ixokai.io> - 2016-05-01 22:15 -0700
        Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-02 01:59 -0400
          Re: Fastest way to retrieve and write html contents to file Stephen Hansen <me+python@ixokai.io> - 2016-05-01 23:27 -0700
            Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-02 03:37 -0400
              Re: Fastest way to retrieve and write html contents to file Stephen Hansen <me+python@ixokai.io> - 2016-05-02 00:58 -0700
              Re: Fastest way to retrieve and write html contents to file Michael Torrie <torriem@gmail.com> - 2016-05-02 22:06 -0600
                Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-03 00:24 -0400
                Re: Fastest way to retrieve and write html contents to file Tim Chase <python.list@tim.thechases.com> - 2016-05-03 10:28 -0500
                Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-03 13:00 -0400
                Re: Fastest way to retrieve and write html contents to file Tim Chase <python.list@tim.thechases.com> - 2016-05-03 13:41 -0500
                Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-04 02:10 -0400
      Re: Fastest way to retrieve and write html contents to file Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-05-02 16:05 +1000
        Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-02 02:47 -0400
          Re: Fastest way to retrieve and write html contents to file Chris Angelico <rosuav@gmail.com> - 2016-05-02 17:19 +1000
            Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-02 21:51 -0400
              Re: Fastest way to retrieve and write html contents to file Chris Angelico <rosuav@gmail.com> - 2016-05-03 12:00 +1000
                Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-02 22:01 -0400
          Re: Fastest way to retrieve and write html contents to file Peter Otten <__peter__@web.de> - 2016-05-02 10:42 +0200
            Re: Fastest way to retrieve and write html contents to file DFS <nospam@dfs.com> - 2016-05-02 21:52 -0400
  Re: Fastest way to retrieve and write html contents to file Chris Angelico <rosuav@gmail.com> - 2016-05-02 14:53 +1000
  Re: Fastest way to retrieve and write html contents to file Tim Chase <python.list@tim.thechases.com> - 2016-05-02 07:38 -0500

csiph-web