Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5527
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Thomas Güttler <guettliml@thomas-guettler.de> |
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Flaschenhals erkennen |
| Date | Fri, 23 Aug 2019 16:03:37 +0200 |
| Lines | 57 |
| Message-ID | <mailman.23.1566569019.30344.python-de@python.org> (permalink) |
| References | <b08dbdeb-1862-ed68-07f4-d4d74eb8812e@thomas-guettler.de> <1627A4FA-8B66-4A63-A893-89F5F0BB1ECC@xfel.eu> <bd429583-4759-f526-683c-f14fb0e47023@thomas-guettler.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de bSL4AEGaTFgCdxbiHU4UlAZode+lmHI3ruxQsuSvLz1A== |
| Return-Path | <guettliml@thomas-guettler.de> |
| X-Original-To | python-de@python.org |
| Delivered-To | python-de@mail.python.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
| In-Reply-To | <1627A4FA-8B66-4A63-A893-89F5F0BB1ECC@xfel.eu> |
| Content-Language | de-DE |
| X-BeenThere | python-de@python.org |
| X-Mailman-Version | 2.1.29 |
| Precedence | list |
| List-Id | Die Deutsche Python Mailingliste <python-de.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-de/> |
| List-Post | <mailto:python-de@python.org> |
| List-Help | <mailto:python-de-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <bd429583-4759-f526-683c-f14fb0e47023@thomas-guettler.de> |
| X-Mailman-Original-References | <b08dbdeb-1862-ed68-07f4-d4d74eb8812e@thomas-guettler.de> <1627A4FA-8B66-4A63-A893-89F5F0BB1ECC@xfel.eu> |
| Xref | csiph.com de.comp.lang.python:5527 |
Show key headers only | View raw
Am 23.08.19 um 11:28 schrieb Hans Fangohr: > Moin, > > py.test erlaubt die langsamsten N Tests anzuzeigen. For N=5 zB: > >> py.test --durations=5 > Hallo Hans, bei dem unten genannten Beispiel würde das nichts finden. Es wurde in fast jedem Test etwas Zeit für bcrypt verschwendet. Es war nicht nur ein Test der langsam war, sondern die Summe alle bcrypt-Aufrufe war das Problem. Gruß, Thomas On 23. Aug 2019, at 11:18, Thomas Güttler <guettliml@thomas-guettler.de> wrote: >> >> Hallo, >> >> wir haben Code mit recht 2000 Tests. >> Die Ausführung der Tests dauert eine halbe Stunde, >> und es wäre schön, wenn das schneller gehen würde. >> >> Vor kurzem wurde durch Zufall erkannt, dass ständig ein Test-User >> erstellt wird und dabei bcrypt verwendet wird. >> >> Diese eine Stelle wurde optimiert, und es wurden 5 Minuten Zeit gespart. >> >> Super .... aber ich will solche Erkenntnisse ungern dem Zufall überlassen. >> >> Ich suche nun ein Tool, mit dem man erkennen kann, ob es noch weitere >> Flaschenhälse/Bottlenecks im Code gibt. >> >> Wie würdet ihr nun vorgehen? >> >> Gruß, >> Thomas >> >> >> >> -- >> Thomas Guettler http://www.thomas-guettler.de/ >> I am looking for feedback: https://github.com/guettli/programming-guidelines >> _______________________________________________ >> python-de maillist - python-de@python.org >> https://mail.python.org/mailman/listinfo/python-de > -- Thomas Guettler http://www.thomas-guettler.de/ I am looking for feedback: https://github.com/guettli/programming-guidelines
Back to de.comp.lang.python | Previous | Next | Find similar
Re: [Python-de] Flaschenhals erkennen Thomas Güttler <guettliml@thomas-guettler.de> - 2019-08-23 16:03 +0200
csiph-web