aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/benchmark_suite
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-03-09 16:13:47 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-03-09 16:13:47 +0000
commit9d9d81ad71a52c33ba4db9f8a6059d435d279316 (patch)
treed12a85ca594af99b04ce32f652ae67bf0baf228b /bench/benchmark_suite
parentf64311e07de95694187e5d6d5d2e3cd118302076 (diff)
* basic support for multicore CPU via a .evalOMP() which
internaly uses OpenMP if enabled at compile time. * added a bench/ folder with a couple benchmarks and benchmark tools.
Diffstat (limited to 'bench/benchmark_suite')
-rwxr-xr-xbench/benchmark_suite17
1 files changed, 17 insertions, 0 deletions
diff --git a/bench/benchmark_suite b/bench/benchmark_suite
new file mode 100755
index 000000000..9ddfccbf6
--- /dev/null
+++ b/bench/benchmark_suite
@@ -0,0 +1,17 @@
+#!/bin/bash
+echo "Fixed size 3x3, ColumnMajor, -DNDEBUG"
+$CXX -O3 -I .. -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark >/dev/null
+echo "Fixed size 3x3, ColumnMajor, with asserts"
+$CXX -O3 -I .. benchmark.cpp -o benchmark && time ./benchmark >/dev/null
+echo "Fixed size 3x3, RowMajor, -DNDEBUG"
+$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark >/dev/null
+echo "Fixed size 3x3, RowMajor, with asserts"
+$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR benchmark.cpp -o benchmark && time ./benchmark >/dev/null
+echo "Dynamic size 20x20, ColumnMajor, -DNDEBUG"
+$CXX -O3 -I .. -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
+echo "Dynamic size 20x20, ColumnMajor, with asserts"
+$CXX -O3 -I .. benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
+echo "Dynamic size 20x20, RowMajor, -DNDEBUG"
+$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null
+echo "Dynamic size 20x20, RowMajor, with asserts"
+$CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR benchmarkX.cpp -o benchmarkX && time ./benchmarkX >/dev/null