/srv/osrm/osrm-backend/third_party/libosmium/benchmarks
NameSizeModeActions
CMakeLists.txt16820644editdlrm
download_data.sh7090755editdlrm
osmium_benchmark_count.cpp12660644editdlrm
osmium_benchmark_count_tag.cpp12800644editdlrm
osmium_benchmark_index_map.cpp13040644editdlrm
osmium_benchmark_mercator.cpp10310644editdlrm
osmium_benchmark_static_vs_dynamic_index.cpp59090644editdlrm
osmium_benchmark_write_pbf.cpp10710644editdlrm
README.md14760644editdlrm
run_benchmarks.sh2190755editdlrm
run_benchmark_count.sh5320755editdlrm
run_benchmark_count_tag.sh5400755editdlrm
run_benchmark_index_map.sh8270755editdlrm
run_benchmark_mercator.sh5380755editdlrm
run_benchmark_static_vs_dynamic_index.sh3930755editdlrm
run_benchmark_write_pbf.sh8660755editdlrm
setup.sh10380755editdlrm
Edit: /srv/osrm/osrm-backend/third_party/libosmium/benchmarks/README.md (1476B)
# Benchmarks Benchmarks check the performance of different parts of Libosmium. ## Preparations To run the benchmarks first make a directory for the data files somewhere (outside the repository) and set the `DATA_DIR` environment variable: export DATA_DIR=benchmark_data mkdir $DATA_DIR Then copy the OSM files you want to do the benchmarks with into this directory. You can use the `download_data.sh` script to download a selection of OSM files in different sizes, but you can use a different selection, too. The benchmarks will use whatever files you have in the `DATA_DIR` directory. The download script will start the data files names with a number in order of the size of the file from smallest to largest. You can use the same convention or use a different one. Benchmarks will be run on the files in alphabetical order. The files don't have to be in that directory, you can add soft links from that directory to the real file locations if that suits you. ## Compiling the benchmarks To build the benchmarks set the `BUILD_BENCHMARKS` option when configuring with CMake and run the compilation by calling `make` (or whatever build tool you are using). ## Running the benchmarks Go to the build directory and run `benchmarks/run_benchmarks.sh`. You can also run each benchmark on its own by calling the respective script in the `benchmarks` directory. Results of the benchmarks will be printed to stdout, you might want to redirect them into a file.