-
Notifications
You must be signed in to change notification settings - Fork 9
Understanding PBench Output
Pbench creates a set of files for each benchmark run. This page describes where to find the PBench output files, what kinds of files are created by PBench, and how PBench defines the file names.
A benchmark run creates files in an output directory and a subdirectory called a run directory. For the files created by a benchmark run, see PBench Output Files.
Output files are saved to the output directory. Use pbench run -o
to set an output directory.
If the directory specified by -o
does not exist, it is created.
If -o
is not used, the default output directory is the current directory.
Each benchmark run saves the files for that run in a run directory in the output directory.
Each run creates a run directory in the output directory. Use pbench run -n
to set a a run directory name.
The run directory name is either:
-
<main stage name>_<current time>
(default) - the name assigned with
-n
The <main stage name>
is the names of the stage files separated by underscores.
-
./pbench run -s http://localhost:8080 pbench/benchmarks/tpc-ds/sf1.json pbench/benchmarks/tpc-ds/ds_rand5.json
results in:- main stage name
sf1_ds_rand5
- run directory
sf1_ds_rand5_<current time>
- main stage name
-
./pbench/pbench -s http://localhost:8080 pbench/benchmarks/tpc-ds/ds_rand5.json pbench/benchmarks/tpc-ds/sf1.json
results in:- main stage name
ds_rand5_sf1
- run directory of
ds_rand5_sf1_<current time>
- main stage name
-
pbench run
saves the output to<current directory>/<main stage name>-<current time>
, because of the defaults for-o
and-n
. -
pbench run -o pbench_results
saves the output to the directorypbench_results/<main stage name>-<current time>
. -
pbench run -n today
saves the output to<current directory>/today
. -
pbench run -o pbench_results -n today
saves the output topbench_results/today
.
All PBench output files are saved into the run directory in the output directory.
Log files follow the PBench Output File Name Format, followed by an underscore, the run timestamp, and the suffix .log
.
Example:
ds_power_sf1_240509-130537.log
Output files follow the PBench Output File Name Format, with the suffix .json
.
Example:
sf1_query_01.json
Error files follow the PBench Output File Name Format, with the suffix .error.json
.
Example:
sf1_query_02.error.json
Column metadata files follow the PBench Output File Name Format, with the suffix .cols.json
.
Example:
sf1_query_01.cols.json
A summary file is in CSV format. A summary file's name is formed using the <main stage name>
with the suffix _summary.csv
.
Example:
sf1_summary.csv
The query result file name of a file generated by "save_output": true
is created using the following format:
[query_file]_[query_index]_[c|w][sequence_number]
-
[query_file]
- One of the two following, depending on if the query is inqueries
orquery_files
:- queries in the
queries
array are displayed inline - queries in a query file display the file name without extension
- queries in the
-
[query_index]
- The query's position in thequeries
array, or the position in the file named inquery_files
.The first query is assigned a
query_index
of 0.NOTE:
[query_index]
is omitted if thequeries
array, or the file named inquery_files
, only has one query. -
[c|w]
- Identifies the run as a cold run or a warm run.-
c
- cold -
w
- warm
-
-
[sequence_number]
- The sequence number starts at 0. For example, if"cold_runs": 2
and"warm_runs": 3
, then:- the sequence is 0-4
- 0, 1 are the cold runs
- 2, 3, 4 are the warm runs