Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.
notbenh edited this page Sep 13, 2010 · 3 revisions

USAGE:
toolbench.pl [options]
—command ‘STRING’ (can specify many)
—count INT default is 100
—type (report,data,JSON) default is report
—order (count,min,max,total,average) default is ‘average’

EXAMPLE:

> toolbench.pl --command 'perl --version' --command 'ruby --version' --count 10
                count   min    max   total average
perl --version    10  0.0044 0.0058 0.0503 0.0050
ruby --version    10  0.0060 0.0149 0.0752 0.0075
> toolbench.pl --command 'perl --version' --command 'ruby --version' --count 10 --type data
$VAR1 = [
          {
            'count' => 10,
            'average' => '0.00581812858581543',
            'cmd' => 'perl --version',
            'min' => '0.0050508975982666',
            'max' => '0.00722908973693848',
            'total' => '0.0581812858581543',
            'times' => [
                         '0.0050508975982666',
                         '0.00662994384765625',
                         '0.00523686408996582',
                         '0.00528407096862793',
                         '0.00661110877990723',
                         '0.00545907020568848',
                         '0.00509214401245117',
                         '0.0051729679107666',
                         '0.00722908973693848',
                         '0.00641512870788574'
                       ]
          },
          {
            'count' => 10,
            'average' => '0.00743796825408936',
            'cmd' => 'ruby --version',
            'min' => '0.00687885284423828',
            'max' => '0.0087430477142334',
            'total' => '0.0743796825408936',
            'times' => [
                         '0.00690817832946777',
                         '0.00700283050537109',
                         '0.00689387321472168',
                         '0.00873589515686035',
                         '0.00707602500915527',
                         '0.00687885284423828',
                         '0.0087430477142334',
                         '0.00768685340881348',
                         '0.00700211524963379',
                         '0.00745201110839844'
                       ]
          }
        ];
> toolbench.pl --command 'perl --version' --command 'ruby --version' --count 10 --type json
[{"count":10,"average":0.00566670894622803,"cmd":"perl --version","min":0.00485897064208984,"max":0.00704407691955566,"total":0.0566670894622803,"times":[0.00502896308898926,0.00593996047973633,0.00528097152709961,0.00518012046813965,0.00678086280822754,0.00573015213012695,0.00485897064208984,0.00704407691955566,0.0057520866394043,0.00507092475891113]},{"count":10,"average":0.00979337692260742,"cmd":"ruby --version","min":0.00685882568359375,"max":0.0308229923248291,"total":0.0979337692260742,"times":[0.00689601898193359,0.00768089294433594,0.00685882568359375,0.00894689559936523,0.00686120986938477,0.00686788558959961,0.00759601593017578,0.00690603256225586,0.00849699974060059,0.0308229923248291]}]
Clone this wiki locally