LetItBench provides a set of non-optimized and approximation-resilient application which can be targeted by automatic tools to leverage the approximation opportunities that they offer.
- A recent version of CMake (>=3.12):
- Most linux distribution provides a CMake package (may be an outdated version).
- Pre-build binaries for multiple systems can be downloaded from the cmake website.
- GNU make
The benchmarks configuration resides in the LetItBench/benchmarks_configuration folder.
This folder contains:
MasterConfig.cmake- Set the variable
COMMON_BATCH_NUMto configure the number of runs. - Set the list
COMMON_BENCH_COMPILE_OPTIONto the relevant compilation options. - Set the list
COMMON_BENCH_LINK_OPTIONto the relevant linker options. - Set the list
BENCHMARK_SETto point to a new application configuration file to add a new application.
- Set the variable
<ApplicationName>.cmake- Set the list
*_COMPILE_OPTIONSto override the common compilation options. - Set the list
*_LINK_OPTIONSto override the common compilation options. - Uncomment
*_BATCH_NUMto override the number of batch runs for this application. - Create new run by creating a list starting with its name and followed by the application parameters.
- Disable / Enable runs by removing / adding a run (application parameters) to the
*_BENCHMARKSlist.
- Set the list
Follow the following instructions in a terminal:
git clone https://github.com/Syllo/LetItBench.git mkdir -p LetItBench/build && cd LetItBench/build cmake .. make bench # To run only one time make batch-bench # To run the benchmarks multiple times in a row (see BATCH_NUM in Configuration) make gather-data # To gather the data from all the runs into a single file
The results will be available in the directory LetItBench/benchmarks_result_directory.