eigen/bench
2016-05-05 14:15:11 -07:00
..
btl bug #1178: Simplified modification of the SSE control register for better portability 2016-03-20 10:57:08 +01:00
perf_monitoring/gemm Unify gemm and lazy_gemm benchmarks 2015-10-07 16:06:48 +02:00
spbench Extend superlu cmake script to check version 2015-11-30 14:48:11 +01:00
tensors Added a benchmark to measure the performance of full reductions of 16 bit floats 2016-05-05 14:15:11 -07:00
analyze-blocking-sizes.cpp
basicbench.cxxlist
basicbenchmark.cpp
basicbenchmark.h
bench_gemm.cpp Make bench_gemm compatible with 3.2 2015-12-01 09:57:31 +01:00
bench_multi_compilers.sh
bench_norm.cpp
bench_reverse.cpp
bench_sum.cpp
bench_unrolling
benchBlasGemm.cpp
benchCholesky.cpp
benchEigenSolver.cpp
benchFFT.cpp
benchGeometry.cpp
benchmark_suite
benchmark-blocking-sizes.cpp
benchmark.cpp
benchmarkSlice.cpp
benchmarkX.cpp
benchmarkXcwise.cpp
BenchSparseUtil.h
BenchTimer.h remove useless include 2016-04-14 15:18:56 +02:00
BenchUtil.h
benchVecAdd.cpp
check_cache_queries.cpp
dense_solvers.cpp Add COD and BDCSVD in list of benched solvers. 2016-02-19 23:00:33 +01:00
eig33.cpp
geometry.cpp
product_threshold.cpp
quat_slerp.cpp
quatmul.cpp
README.txt
sparse_cholesky.cpp
sparse_dense_product.cpp
sparse_lu.cpp
sparse_product.cpp
sparse_randomsetter.cpp
sparse_setter.cpp
sparse_transpose.cpp
sparse_trisolver.cpp
spmv.cpp
vdw_new.cpp

This folder contains a couple of benchmark utities and Eigen benchmarks.

****************************
* bench_multi_compilers.sh *
****************************

This script allows to run a benchmark on a set of different compilers/compiler options.
It takes two arguments:
 - a file defining the list of the compilers with their options
 - the .cpp file of the benchmark

Examples:

$ ./bench_multi_compilers.sh basicbench.cxxlist basicbenchmark.cpp

    g++-4.1 -O3 -DNDEBUG -finline-limit=10000
    3d-3x3   /   4d-4x4   /   Xd-4x4   /   Xd-20x20   /
    0.271102   0.131416   0.422322   0.198633
    0.201658   0.102436   0.397566   0.207282

    g++-4.2 -O3 -DNDEBUG -finline-limit=10000
    3d-3x3   /   4d-4x4   /   Xd-4x4   /   Xd-20x20   /
    0.107805   0.0890579   0.30265   0.161843
    0.127157   0.0712581   0.278341   0.191029

    g++-4.3 -O3 -DNDEBUG -finline-limit=10000
    3d-3x3   /   4d-4x4   /   Xd-4x4   /   Xd-20x20   /
    0.134318   0.105291   0.3704   0.180966
    0.137703   0.0732472   0.31225   0.202204

    icpc -fast -DNDEBUG -fno-exceptions -no-inline-max-size
    3d-3x3   /   4d-4x4   /   Xd-4x4   /   Xd-20x20   /
    0.226145   0.0941319   0.371873   0.159433
    0.109302   0.0837538   0.328102   0.173891


$ ./bench_multi_compilers.sh ompbench.cxxlist ompbenchmark.cpp

    g++-4.2 -O3 -DNDEBUG -finline-limit=10000 -fopenmp
    double, fixed-size 4x4: 0.00165105s  0.0778739s
    double, 32x32: 0.0654769s 0.075289s  => x0.869674 (2)
    double, 128x128: 0.054148s 0.0419669s  => x1.29025 (2)
    double, 512x512: 0.913799s 0.428533s  => x2.13239 (2)
    double, 1024x1024: 14.5972s 9.3542s  => x1.5605 (2)

    icpc -fast -DNDEBUG -fno-exceptions -no-inline-max-size -openmp
    double, fixed-size 4x4: 0.000589848s  0.019949s
    double, 32x32: 0.0682781s 0.0449722s  => x1.51823 (2)
    double, 128x128: 0.0547509s 0.0435519s  => x1.25714 (2)
    double, 512x512: 0.829436s 0.424438s  => x1.9542 (2)
    double, 1024x1024: 14.5243s 10.7735s  => x1.34815 (2)