Re: [sip-ops] [dispatch] SIP-CLF: Results on ASCII vs. binary representation

Theo Zourzouvillys <theo@crazygreek.co.uk> Wed, 29 April 2009 15:46 UTC

Return-Path: <theo@crazygreek.co.uk>
X-Original-To: sip-ops@core3.amsl.com
Delivered-To: sip-ops@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 631303A6B39; Wed, 29 Apr 2009 08:46:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.844
X-Spam-Level:
X-Spam-Status: No, score=-5.844 tagged_above=-999 required=5 tests=[AWL=0.133, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CGpTUCYCyu1R; Wed, 29 Apr 2009 08:46:41 -0700 (PDT)
Received: from exprod7og108.obsmtp.com (exprod7og108.obsmtp.com [64.18.2.169]) by core3.amsl.com (Postfix) with SMTP id BDEA93A6945; Wed, 29 Apr 2009 08:46:24 -0700 (PDT)
Received: from source ([72.14.220.153]) by exprod7ob108.postini.com ([64.18.6.12]) with SMTP ID DSNKSfh2ollaZ/zRlB6EdmXO23KvFLiDgkFI@postini.com; Wed, 29 Apr 2009 08:47:48 PDT
Received: by fg-out-1718.google.com with SMTP id e12so503793fga.15 for <multiple recipients>; Wed, 29 Apr 2009 08:47:45 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.86.3.4 with SMTP id 4mr820606fgc.66.1241020065188; Wed, 29 Apr 2009 08:47:45 -0700 (PDT)
In-Reply-To: <49F864E8.20005@alcatel-lucent.com>
References: <49F864E8.20005@alcatel-lucent.com>
From: Theo Zourzouvillys <theo@crazygreek.co.uk>
Date: Wed, 29 Apr 2009 16:47:25 +0100
Message-ID: <167dfb9b0904290847u322161d5h3da18771344436ec@mail.gmail.com>
To: "Vijay K. Gurbani" <vkg@alcatel-lucent.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: sip-ops@ietf.org, dispatch@ietf.org, sipping WG <sipping@ietf.org>
Subject: Re: [sip-ops] [dispatch] SIP-CLF: Results on ASCII vs. binary representation
X-BeenThere: sip-ops@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SIP Operations <sip-ops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/sip-ops>, <mailto:sip-ops-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sip-ops>
List-Post: <mailto:sip-ops@ietf.org>
List-Help: <mailto:sip-ops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sip-ops>, <mailto:sip-ops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 29 Apr 2009 15:46:42 -0000

On Wed, Apr 29, 2009 at 3:32 PM, Vijay K. Gurbani
<vkg@alcatel-lucent.com>; wrote:
>  If you find any errors in the programs used to generate
> these results, please do let us know.

actually, your test program is *grossly* skewed in favour of the ASCII
implementation.  If you modify it slightly to behave in a way i'd
expect any developer to, you get (avg 5 runs on a crappy dell vostro
desktop):

 Binary CLF:   0m6.947s
 ASCII CLF:    0m7.004s

If you take i/o out of the question too and set output to /dev/null,
then you get:

 Binary CLF:   0m0.610s
 ASCII CLF:    0m1.905s

which is far more realistic for high throughput servers which are
logging to an in-memory circular buffer or some shared memory
segments.

modified source: http://dev.voip.co.uk/~theo/write-clf.theo.txt
diff: http://dev.voip.co.uk/~theo/write-clf.diff

note that i wrote it in all of about 120 seconds, so there may be some
errors in the output format, but my point stands :-)

 ~ Theo

http://twitter.com/zourzouvillys
http://crazygreek.co.uk/