Running Benchmarks
The applications take the input graph as input as well as an optional flag "-s" to indicate a symmetric graph. Symmetric graphs should be called with the "-s" flag for better performance. For example:
Note that the codes that compute single-source shortest paths (or centrality)
take an extra -src
flag. The benchmark is run four times by default, and can
be changed by passing the -rounds
flag followed by an integer indicating the
number of runs.
On NUMA machines, adding the command "numactl -i all " when running the program may improve performance for large graphs. For example:
#
Running code on compressed graphsWe make use of the bytePDA format in our benchmark, which is similar to the parallelByte format of Ligra+, extended with additional functionality. We have provided a converter utility which takes as input an uncompressed graph and outputs a bytePDA graph. The converter can be used as follows:
After an uncompressed graph has been converted to the bytepda format,
applications can be run on it by passing in the usual command-line flags, with
an additional -c
flag.
When processing large compressed graphs, using the -m
command-line flag can
help if the file is already in the page cache, since the compressed graph data
can be mmap'd. Application performance will be affected if the file is not
already in the page-cache. We have found that using -m
when the compressed
graph is backed by SSD results in a slow first-run, followed by fast subsequent
runs.
#
Running code on binary-encoded graphsWe make use of a binary-graph format in our benchmark. The binary representation stores the representation we use for in-memory processing (compressed sparse row) directly on disk, which enables applications to avoid string-conversion overheads associated with the adjacency graph format described below. We have provided a converter utility which takes as input an uncompressed graph (e.g., in adjacency graph format) and outputs this graph in the binary format. The converter can be used as follows:
After an uncompressed graph has been converted to the binary format,
applications can be run on it by passing in the usual command-line flags, with
an additional -b
flag. Note that the application will always load the binary
file using mmap.
Note that application performance will be affected if the file is not already
in the page-cache. We have found that using -m
when the binary graph is backed
by SSD or disk results in a slow first-run, followed by fast subsequent runs.