Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #90966
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.022 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'python3': 0.07; 'sys': 0.07; 'measure': 0.09; 'subject:Help': 0.11; 'python': 0.11; 'subject:run': 0.16; 'url:unix': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'fairly': 0.24; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'clock': 0.31; 'constant': 0.31; 'run': 0.32; 'subject:time': 0.33; 'actual': 0.34; 'received:google.com': 0.35; 'subject:regarding': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'number,': 0.60; 'real': 0.63; 'wall': 0.65; '20,': 0.68; '2015': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=DuthK+5SLz4RA9SzmIWV+1nj46MC6vrVKuwnzEpaFe4=; b=Y13zwrEmpFx2NZalh9yLWX16Ej932mJD91RpP23Nlpk+zsaxbNoxJ8KLR5psnClDCD 5B5BcpHui1gWFc36YY55xbIqi8CIsP05ozP0VBMlYGz2+lFRMKBwvCZr92p25QXXftNq gTRITuh9h5BF2mRdKZ7iO92QZ50Mn9y5G0q420KzG6YOFoKUDILeLBdxgtIZxyhx1BVZ HZjaOY7Kb6ESQHM8KYwEGk9CWlAZXGiTD6DR9Ckt9mxYU5Tx+oVSbvihXEWxbSg3FQeG y17mbFL6xT2AsxYUZv5IFxU63sDKc1W651DqUVoMw/Izyu2tfGtLkTrtP4mBipQyyrOu di/Q== |
| X-Received | by 10.107.6.167 with SMTP id f39mr26503978ioi.61.1432139255754; Wed, 20 May 2015 09:27:35 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <555cacd9$0$2934$e4fe514c@news2.news.xs4all.nl> |
| References | <CALbtgctWb5zHWG=Nf-Qoi94gUscp3L=Xx39a_onqzzx1hNci6A@mail.gmail.com> <mailman.172.1432135454.17265.python-list@python.org> <555cacd9$0$2934$e4fe514c@news2.news.xs4all.nl> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Wed, 20 May 2015 10:26:55 -0600 |
| Subject | Re: Help regarding python run time |
| To | Python <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.176.1432139258.17265.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1432139258 news.xs4all.nl 2935 [2001:888:2000:d::a6]:36687 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:90966 |
Show key headers only | View raw
On Wed, May 20, 2015 at 9:48 AM, Irmen de Jong <irmen.NOSPAM@xs4all.nl> wrote: > Or measure the actual CPU clock cycles taken instead of the wall clock run time. > Then you should get a fairly constant number, if the program does the same work every > time you run it. > > phobos:~ irmen$ time python test.py > real 0m3.368s > user 0m0.214s <--- cpu time spent in user mode actually doing work > sys 0m0.053s And yet: $ time python3 primes.py real 0m1.101s user 0m1.099s sys 0m0.000s $ time python3 primes.py real 0m1.135s user 0m1.128s sys 0m0.004s $ time python3 primes.py real 0m1.162s user 0m1.147s sys 0m0.013s http://unix.stackexchange.com/questions/162115/why-does-the-user-and-sys-time-vary-on-multiple-executions
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Help regarding python run time Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-20 09:23 -0600
Re: Help regarding python run time Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2015-05-20 17:48 +0200
Re: Help regarding python run time Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-20 10:26 -0600
csiph-web