xz-compressed tarball
Fungicide suffers from a lack of proper documentation. The information in the remainder of this page should be part of a provided readme, but currently there's no such thing.
Each individual benchmark is identified by a script which produces it (that script is confusingly often also referred to as a benchmark) and the parameter passed to the script. That parameter is the problem size, and its meaning depends on the benchmark in question.
Benchmarks tend to end with the f.@
sequence to report completion: what's interesting is what comes before that.
Brief descriptions of each benchmark follow.
>
character repeated the given number of times.v
character repeated the given number of times, on separate lines.11x
followed by the given number of z
in a diagonal line.>v^<
.>v^<
.The above all have "-p
" forms as well. This signifies that instead of placing all the code to be executed into the file directly, much of it is first generated using the p
instruction. For example, horizontal-p.b98 first loops the given number of times, placing >
instructions as it goes, resulting in an in-memory copy of horizontal.b98, which is then executed. This not only benchmarks file loading versus runtime space manipulation, it also allows for long "diagdown" and "diagup" benchmarks without requiring lots of storage space for files that would consist mostly of indentation.
filled-square.b98 has two "-p
" forms, "horizontal" and "vertical". They differ in the order in which the square is built: rowwise and columnwise respectively.
Further benchmarks are listed below.
f
instruction repeated the given number of times.:$
instruction sequence repeated the given number of times.yn
instruction sequence repeated the given number of times.y0
instruction sequence repeated the given number of times, followed by an n
prior to exit.t
, then runs them all into an @
for termination.Time is measured simply from a Perl script using the POSIX gettimeofday()
function.
Memory usage is measured using a Python script which repeatedly reads the /proc/<pid>/smaps
pseudofile, summing up any "Shared" and "Private" values. This is done as often as possible in a busy loop while the interpreter process is still alive.
First, the interpreter is run on a benchmark once and its time and memory use are measured. Memory usage is assumed to not vary, and thus it is measured only this one time per benchmark. Based on the time it took to run this, there are three possible continuations:
Thus, we may have either two, four, or eleven temporal measurements in total. The representative one, for analysis, is chosen as the mean of all but the maximum of these (which, in almost all cases, simply cuts off the memory-measuring run).
At least the following software is required:
In addition, the following software is optional:
On the hardware side, the busy-looping nature of the memory use measurement tool means that having at least two CPU cores is recommended.
Given an extracted Fungicide package and all required dependencies, the following steps will run the benchmarks and generate visualizations: