From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22511 invoked by alias); 6 Aug 2010 14:09:52 -0000 Received: (qmail 22499 invoked by uid 22791); 6 Aug 2010 14:09:51 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_50,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx3-phx2.redhat.com (HELO mx01.colomx.prod.int.phx2.redhat.com) (209.132.183.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 Aug 2010 14:09:43 +0000 Received: from mail01.corp.redhat.com (zmail01.collab.prod.int.phx2.redhat.com [10.5.5.41]) by mx01.colomx.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o76E9gBM025222 for ; Fri, 6 Aug 2010 10:09:42 -0400 Date: Fri, 06 Aug 2010 14:09:00 -0000 From: Lukas Berk To: systemtap Message-ID: <1454241618.697311281103781966.JavaMail.root@zmail01.collab.prod.int.phx2.redhat.com> In-Reply-To: <465471375.696531281103640588.JavaMail.root@zmail01.collab.prod.int.phx2.redhat.com> Subject: stap_merge benchmarks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2010-q3/txt/msg00197.txt.bz2 For those interested, I tested out various versions the stap_merge.tcl script to see the how long it would take to generate a merged document. Noting that the greatest performance factor was printing to stderr vs an $outfile I came up with these versions. Script1 - the original script Script2 - change the -v flag to print to the $outfile (if it exists) Script3 - Allow the user to decide to print -v to stderr or the $outfile (again, if it exists) Each script has the seconds it took to complete, and the size of the output file. input files (MB) | Script 1 (sec/MB) | Script 2 (sec/MB) | Script 3v1 (sec/MB) | Script 3v2 (sec/MB) | Script 1 (sec/MB) _________________|___________________|___________________|_-v to sterr_________|_-v to $outfile______|_no -v flag_______ 116 / 108 | 31 / 221 | 20 / 235 | 44 / 221 | 37 / 235 | 18 / 221 | | | | | 92 / 65 | 30 / 154 | 13 / 164 | 21 / 154 | 28 / 164 | 12 / 154 | | | | | 47 / 28 | 10 / 73 | 7 / 78 | 10 / 73 | 7 / 78 | 5 / 73 | | | | | 100 / 94 | 26 / 190 | 18 / 203 | 31 / 190 | 34 / 203 | 29 / 190 | | | | | 9.2 / 16 | 5 / 24 | 2 / 27 | 4 / 24 | 3 / 27 | 3 / 24 | | | | | 266 / 282 | 58 / 541 | 59 / 567 | 82 / 541 | 67 / 567 | 61 / 541 | | | | | 87 / 100 | 25 / 183 | 20 / 195 | 27 / 183 | 30 / 195 | 28 / 183 | | | | | 80 / 90 | 23 / 167 | 14 / 178 | 25 / 167 | 16 / 178 | 20 / 167 | | | | | 150 / 154 | 75 / 300 | 31 / 317 | 40 / 300 | 35 / 317 | 31 / 300 | | | | | It seems that Script 2 generally outperforms the other scripts, even the original script with no verbose flag specified, however the output file is larger. Any thoughts? Are these acceptable results? Lukas Berk