http://gap.cs.berkeley.edu/benchmark.htmlgap.cs.berkeley.edu
The GAP Benchmark Suite aims to support graph processing research by standardizing evaluation. By reducing the variation between graph processing evaluations, it becomes easier to compare different research efforts and to quantify improvements. In addition to specifying the graph kernels, input graphs, and evaluation methodology, this benchmark also provides an optimized baseline implementation (this repo).
- Breadth First Search (BFS) : direction-optimizing
- Single-Source Shortest Paths (SSSP) : delta-stepping
- PageRank (PR) : iterative method in the pull direction
- Connected Component (CC) : Afforest & Shiloach-Vishkin
- Betweenness Centrality (BC) : Brandes
- Triangle Count (TC) : order-invariant, relabeling possible
How to Compile the GAP Benchmark Suite
First, I try compiling on x86.
# Download the repository
$ git clone https://github.com/sbeamer/gapbs.git
$ make bench-graphs $ make bench-run
bench-graphs converts the downloaded benchmark test sets into the format required as input to the benchmark programs.
bench-run actually runs the benchmark programs. A normal run takes several hours even on a fairly large server.
./pr -f benchmark/graphs/road.sg -i1000 -t1e-4 -n16 > benchmark/out/pr-road.out ./cc -f benchmark/graphs/road.sg -n16 > benchmark/out/cc-road.out ./bc -f benchmark/graphs/road.sg -i4 -n16 > benchmark/out/bc-road.out ./bfs -f benchmark/graphs/kron.sg -n64 > benchmark/out/bfs-kron.out ./pr -f benchmark/graphs/kron.sg -i1000 -t1e-4 -n16 > benchmark/out/pr-kron.out ./cc -f benchmark/graphs/kron.sg -n16 > benchmark/out/cc-kron.out ./bc -f benchmark/graphs/kron.sg -i4 -n16 > benchmark/out/bc-kron.out ./tc -f benchmark/graphs/kronU.sg -n3 > benchmark/out/tc-kron.out ./bfs -f benchmark/graphs/urand.sg -n64 > benchmark/out/bfs-urand.out ./pr -f benchmark/graphs/urand.sg -i1000 -t1e-4 -n16 > benchmark/out/pr-urand.out ./cc -f benchmark/graphs/urand.sg -n16 > benchmark/out/cc-urand.out ./bc -f benchmark/graphs/urand.sg -i4 -n16 > benchmark/out/bc-urand.out ./tc -f benchmark/graphs/urandU.sg -n3 > benchmark/out/tc-urand.out ./sssp -f benchmark/graphs/twitter.wsg -n64 -d2 > benchmark/out/sssp-twitter.out ./sssp -f benchmark/graphs/web.wsg -n64 -d2 > benchmark/out/sssp-web.out ./sssp -f benchmark/graphs/road.wsg -n64 -d50000 > benchmark/out/sssp-road.out ./sssp -f benchmark/graphs/kron.wsg -n64 -d2 > benchmark/out/sssp-kron.out ./sssp -f benchmark/graphs/urand.wsg -n64 -d2 > benchmark/out/sssp-urand.out ./tc -f benchmark/graphs/twitterU.sg -n3 > benchmark/out/tc-twitter.out ./tc -f benchmark/graphs/webU.sg -n3 > benchmark/out/tc-web.out ./tc -f benchmark/graphs/roadU.sg -n3 > benchmark/out/tc-road.out
The results can be obtained as execution times.
for out in `ls -1 *.out`
do
echo -n ${out} ':'
grep Average ${out}
done
bc-kron.out :Average Time: 78.94669 bc-road.out :Average Time: 829.96082 bc-twitter.out :Average Time: 39.44177 bc-urand.out :Average Time: 94.57923 bc-web.out :Average Time: 20.79808 bfs-kron.out :Average Time: 4.07169 bfs-road.out :Average Time: 206.68253 bfs-twitter.out :Average Time: 4.17816 bfs-urand.out :Average Time: 4.29056 bfs-web.out :Average Time: 3.77706 cc-kron.out :Average Time: 4.39335 cc-road.out :Average Time: 0.36037 cc-twitter.out :Average Time: 1.37252 cc-urand.out :Average Time: 3.68049 cc-web.out :Average Time: 0.89868 pr-kron.out :Average Time: 32.72281 pr-road.out :Average Time: 1.25165 pr-twitter.out :Average Time: 18.62348 pr-urand.out :Average Time: 39.28258 pr-web.out :Average Time: 4.29745 sssp-kron.out :Average Time: 49.12129 sssp-road.out :Average Time: 56.80930 sssp-twitter.out :Average Time: 33.54466 sssp-urand.out :Average Time: 46.43984 sssp-web.out :Average Time: 51.23079 tc-kron.out :Average Time: 330.52365 tc-road.out :Average Time: 0.03027 tc-twitter.out :Average Time: 45.55035 tc-urand.out :Average Time: 84.87536 tc-web.out :Average Time: 18.31299
This is an English translation of the original Japanese post: GAP Benchmarkについて調べる