Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / libs / eigen / bench / benchmark_suite
blob3f21d366178817a790340049dd3fcdab0f42b5a5
1 #!/bin/bash
2 CXX=${CXX-g++} # default value unless caller has defined CXX
3 echo "Fixed size 3x3, column-major, -DNDEBUG"
4 $CXX -O3 -I .. -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark >/dev/null
5 echo "Fixed size 3x3, column-major, with asserts"
6 $CXX -O3 -I .. benchmark.cpp -o benchmark && time ./benchmark >/dev/null
7 echo "Fixed size 3x3, row-major, -DNDEBUG"
8 $CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark >/dev/null
9 echo "Fixed size 3x3, row-major, with asserts"
10 $CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR benchmark.cpp -o benchmark && time ./benchmark >/dev/null
11 echo "Dynamic size 20x20, column-major, -DNDEBUG"
12 $CXX -O3 -I .. -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
13 echo "Dynamic size 20x20, column-major, with asserts"
14 $CXX -O3 -I .. benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
15 echo "Dynamic size 20x20, row-major, -DNDEBUG"
16 $CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
17 echo "Dynamic size 20x20, row-major, with asserts"
18 $CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null