|
Monte Carlo Integration Library 1.0
High-performance Monte Carlo methods for numerical integration and optimization
|
Implementation of shared benchmark utilities and global configuration. More...
#include "apps/benchmarks.hpp"Go to the source code of this file.
Functions | |
| void | saveResults (const std::string &filename, const std::vector< results > &results, const std::string &function_expr) |
| Export benchmark results to CSV file for analysis. | |
Variables | |
| const std::vector< size_t > | n_samples_vector = {10'000, 50'000, 100'000, 500'000, 1'000'000} |
| Global sample count vector used across all benchmarks for convergence testing. | |
| unsigned int | n_threads |
| Global OpenMP thread count (set at runtime) | |
Implementation of shared benchmark utilities and global configuration.
Provides:
Benchmark Components:
Sample Configuration:
Definition in file benchmarks.cpp.
| void saveResults | ( | const std::string & | filename, |
| const std::vector< results > & | results, | ||
| const std::string & | function_expr | ||
| ) |
Export benchmark results to CSV file for analysis.
Save benchmark results to a CSV file.
| filename | Output CSV filename |
| results | Vector of benchmark results {n_samples, integration_result, duration_ms} |
| function_expr | String description of the integrated function |
CSV Format:
Useful for:
Definition at line 49 of file benchmarks.cpp.
| const std::vector<size_t> n_samples_vector = {10'000, 50'000, 100'000, 500'000, 1'000'000} |
Global sample count vector used across all benchmarks for convergence testing.
Global benchmark configuration.
Definition at line 28 of file benchmarks.cpp.
| unsigned int n_threads |
Global OpenMP thread count (set at runtime)
Definition at line 31 of file benchmarks.cpp.