-
Notifications
You must be signed in to change notification settings - Fork 73
/
build_benchmark.sh
27 lines (19 loc) · 1.07 KB
/
build_benchmark.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
set -x
time g++-10 benchmark.cxx -std=c++20 -O2 -DBENCHMARK_SIZE=150 -DUSE_STD_TUPLE -o benchmark-gcc
./benchmark-gcc
# nvcc doesn't have C++20 support.
time nvcc benchmark.cxx -std=c++17 -O2 -DBENCHMARK_SIZE=150 -DUSE_STD_TUPLE -o benchmark-nvcc
./benchmark-nvcc
# nvc++ segment faults
# time nvc++ benchmark.cxx -std=c++20 -O2 -DBENCHMARK_SIZE=150 -DUSE_STD_TUPLE -o benchmark-nvc++
# ./benchmark-nvcc
time clang++-12 benchmark.cxx -std=c++20 -O2 -DBENCHMARK_SIZE=150 -DUSE_STD_TUPLE -o benchmark-clang
./benchmark-clang
time circle benchmark.cxx -std=c++20 -O2 -DBENCHMARK_SIZE=150 -DUSE_STD_TUPLE -o benchmark-circle-std
./benchmark-circle-std
time circle benchmark.cxx -std=c++20 -O2 -DBENCHMARK_SIZE=150 -DUSE_EASY_TUPLE -o benchmark-circle-easy
./benchmark-circle-easy
time circle benchmark.cxx -std=c++20 -O2 -DBENCHMARK_SIZE=150 -DUSE_HARD_TUPLE -o benchmark-circle-hard
./benchmark-circle-hard
time circle benchmark.cxx -std=c++20 -O2 -DBENCHMARK_SIZE=150 -DUSE_CIRCLE_TUPLE -o benchmark-circle-circle
./benchmark-circle-circle