Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'debugging': 0.05; 'ascii': 0.07; 'bytes.': 0.07; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:string': 0.09; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:unicode': 0.16; 'string': 0.17; 'wrote:': 0.17; 'comparing': 0.17; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'url:default': 0.27; 'header:X-Complaints-To:1': 0.28; "d'aprano": 0.29; 'measure': 0.29; 'steven': 0.29; 'source': 0.29; 'code': 0.31; 'url:python': 0.32; 'running': 0.32; 'to:addr :python-list': 0.33; 'received:org': 0.36; 'tool': 0.36; 'url:org': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'received:46': 0.60; 'subject:, ': 0.61; 'here:': 0.62; 'subject:...': 0.63; 'benchmark': 0.84; 'subject:, ...': 0.84; 'url:cpython': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Serhiy Storchaka Subject: Re: Flexible string representation, unicode, typography, ... Date: Mon, 03 Sep 2012 18:26:02 +0300 References: <503a8361$0$6574$c3e8da3$5496439d@news.astraweb.com> <2e92da71-fbd2-467f-9088-1c79fa7bcf69@googlegroups.com> <62566024-df1d-4948-a27a-45c7820ddc6c@googlegroups.com> <503f0e45$0$9416$c3e8da3$76491128@news.astraweb.com> <2a12ba52-232a-41b7-a906-1ec379bbddd7@googlegroups.com> <50440af0$0$29967$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 46.185.98.182 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 In-Reply-To: <50440af0$0$29967$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346686000 news.xs4all.nl 6892 [2001:888:2000:d::a6]:50192 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28359 On 03.09.12 04:42, Steven D'Aprano wrote: > If you are *seriously* interested in debugging why string code is slower > for you, you can start by running the full suite of Python string > benchmarks: see the stringbench benchmark in the Tools directory of > source installations, or see here: > > http://hg.python.org/cpython/file/8ff2f4634ed8/Tools/stringbench http://hg.python.org/cpython/file/default/Tools/stringbench However, stringbench is not good tool to measure the effectiveness of new string representation, because it focuses mainly on ASCII strings and comparing strings with bytes.