How to Run the TorFlow Performance Tools I. Introduction There are two main client-side performance measurement tools in TorFlow: speedracer and buildtimes. Speedracer is meant for gathering average stream capacity of nodes and buildtimes is meant for gathering statistics on circuit construction speeds and success rates. II. SpeedRacer Speedracer functions by dividing the Tor network into groups of nodes of similar advertised capacity and then fetching the same URL over and over again via 2-hop circuits consisting of nodes in that group. A. Configuring SpeedRacer At the time of this writing, it has the following configuration parameters at the top of its sourcefile in NetworkScanners/speedracer.py: url = "http://svn.torproject.org/svn/tor/trunk/doc/design-paper/tor-design.pdf" start_pct = 0 stop_pct = 78 pct_step = 3 count = 25 save_every = 5 The URL you specify should be big enough to amortize out TCP slow-start. Shoot for somewhere between 200k-1M. The tor-design.pdf may actually be a little on the small side to properly measure capacities of faster nodes. start_pct and stop_pct are the start and stop points for the run, in terms of the rankings of nodes by their bandwidth. Lower percentiles are faster. pct_step is the size of the slices in percentile units. count is the number of URL fetches to do for each slice. save_every is used for saving incremental results to check for convergence. Results will be saved after each multiple of 'save_every' fetches. The incremental results are cumulative. B. Running SpeedRacer Like soat, speedracer should be given its own Tor that is not performing any other stream activity. It will also require Tor 0.2.1.13 (r18556) or later. First, start up tor: # ~/src/tor-trunk/src/or/tor -f ~/src/torflow-trunk/torrc >& tor.log & Then, start up the Metatroller: # ~/src/torflow-trunk/metatroller.py >& mt.log & Finally, start up speedracer: # cd ~/src/torflow-trunk/NetworkScanners # ./speedracer.py >& speed.log & C. Reading the Tea Leaves SpeedRacer outputs a lot of statistics in aggregate form in ./NetworkScanners/data/speedraces/stats----