Converting Benchmark Results to Spreadsheets
The conv subcommand allows you to convert results generated by btool eval into an XLSX
spreadsheet, which should be used with Excel. Other programs, such as LibreOffice
or OpenOffice, should also work. Keep in mind that by default LibreOffice does not automatically
recalculate formulas. Therefore, after opening the spreadsheet, use CTRL + SHIFT + F9 to
manually recalculate all formulas. You can also enable automatic recalculation in the settings.
The spreadsheet will also include some basic plots. When using LibreOffice some features, such
as dynamic axis titles, will not work and will have to be changed manually.
To convert your benchmark results to a spreadsheet, use the following command:
The name of the resulting .xlsx file is set using the -o, --output option (default out.xlsx).
In cases of a missing or wrong file extension the correct file extension is added.
Which benchmark projects to include in the output can be selected via the -p, --projects
option. By default all projects are selected.
The -m, --measures option specifies which measures to include in the table (default: time:t,timeout:to;
-m all selects all measures). Available measures depend on the result parser used during evaluation.
Each measure can optionally include a formatting argument after a :. Currently,
the supported formatting options are t and to. Both highlight best and worst values for
float measures. Use t for most measures, and to for float measures representing booleans,
such as timeout.
The --max-col-width option can be used to set the maximum column width of the spreadsheet
in terms of pixel. The default is 300.
You can chose to export the instance data to a .parquet file using the -e, --export
option. The name of the file will be the same as the specified output, i.e. -o res.xlsx -e
-> res.parquet.
For large result files, generating the chart-related sheets can take noticeable time.
Use --no-charts to skip creating these sheets.
Existing benchmark classes can be grouped by their first N directory components using
--class-group-depth N, where N is a positive integer.
For example, classes scheduling/small/random and scheduling/small/structured
are combined into scheduling/small at depth 2. At depth 1, both would be combined to
scheduling. The full prefix is retained, so planning/small would remain a separate
class at depth 2.
Classes shallower than the given depth remain unchanged and classes from different benchmark
sets are never combined. If the option is omitted, original classes are retained.
Spreadsheet Generation¶
When generating a spreadsheet in XLSX format, up to five sheets are created:
- Instance Sheet
- The instance sheet lists all runs for each benchmark instance (rows) and their results for the selected measures, grouped by system/setting (columns).
- A summary for each run is included, showing the minimum, maximum, and median values for each float measure.
- Each column with float measures also has a summary, including the sum, average, standard deviation, distance from the minimum, and counts of best, better, worse, and worst values.
- Merged Run Sheet
- The merged run sheet merges all runs of a single instance depending on a selectable criteria
- This sheet is included only if at least one instance has multiple runs.
- Class Sheet
- The class sheet summarizes all runs for each benchmark class, enabling comparisons between classes.
- Chart Sheet
- The chart sheet contains some basics plots (survivor, cactus and cdf)
- Which measures should be plotted and how runs should be merged can be selected by the user.
- For additional fine-tuning, such as using log-scale or disabling certain series, the charts have to be adjusted manually.
- The win difference matrix shows the normalized net win rate:
(wins(i, j) - wins(j, i)) / solved(i or j). A win means a smaller value for the selected measure, including instances solved only by the winning setting/solver. The denominator counts instances solved by at least one setting/solver, counting instances solved by both only once. Scores range from -1 to 1; a score of 0.5 means 50 more wins than losses per 100 included instances. If neither setting/solver solves any instance, the displayed score is 0. Blue favors the row, red favors the column, and white indicates zero. Stronger colors indicate a larger advantage.
- Helper Sheet
- The helper sheet contains all data and calculations used for the charts and is by default hidden.
- The sheet can be unhidden via the sheet selection UI.
Info
All summaries are written as formulas in the .xlsx file. The calculated values are also accessible via the content attribute of the Sheet object.
Both the XLSX representation and the actual content are stored in pandas DataFrames for easier handling and future modifications.