public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* stap_merge benchmarks
       [not found] <465471375.696531281103640588.JavaMail.root@zmail01.collab.prod.int.phx2.redhat.com>
@ 2010-08-06 14:09 ` Lukas Berk
  0 siblings, 0 replies; only message in thread
From: Lukas Berk @ 2010-08-06 14:09 UTC (permalink / raw)
  To: systemtap

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-06 14:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <465471375.696531281103640588.JavaMail.root@zmail01.collab.prod.int.phx2.redhat.com>
2010-08-06 14:09 ` stap_merge benchmarks Lukas Berk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).