2008-03-06 19:36:27 +08:00
|
|
|
#!/bin/bash
|
2008-04-01 00:20:06 +08:00
|
|
|
echo "Fixed size 3x3, column-major, -DNDEBUG"
|
2008-03-06 19:36:27 +08:00
|
|
|
$CXX -O3 -I .. -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark >/dev/null
|
2008-04-01 00:20:06 +08:00
|
|
|
echo "Fixed size 3x3, column-major, with asserts"
|
2008-03-06 19:36:27 +08:00
|
|
|
$CXX -O3 -I .. benchmark.cpp -o benchmark && time ./benchmark >/dev/null
|
2008-04-01 00:20:06 +08:00
|
|
|
echo "Fixed size 3x3, row-major, -DNDEBUG"
|
2008-03-06 19:36:27 +08:00
|
|
|
$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark >/dev/null
|
2008-04-01 00:20:06 +08:00
|
|
|
echo "Fixed size 3x3, row-major, with asserts"
|
2008-03-06 19:36:27 +08:00
|
|
|
$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR benchmark.cpp -o benchmark && time ./benchmark >/dev/null
|
2008-04-01 00:20:06 +08:00
|
|
|
echo "Dynamic size 20x20, column-major, -DNDEBUG"
|
2008-03-06 19:36:27 +08:00
|
|
|
$CXX -O3 -I .. -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
|
2008-04-01 00:20:06 +08:00
|
|
|
echo "Dynamic size 20x20, column-major, with asserts"
|
2008-03-06 19:36:27 +08:00
|
|
|
$CXX -O3 -I .. benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
|
2008-04-01 00:20:06 +08:00
|
|
|
echo "Dynamic size 20x20, row-major, -DNDEBUG"
|
2008-03-06 19:36:27 +08:00
|
|
|
$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
|
2008-04-01 00:20:06 +08:00
|
|
|
echo "Dynamic size 20x20, row-major, with asserts"
|
2008-03-06 19:36:27 +08:00
|
|
|
$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
|