CLI runner for benchmarking Monte Carlo simulation methods. More...
#include "montecarlo.hpp"
#include "benchmark.hpp"
#include <chrono>
#include <iostream>
#include <random>
#include <thread>
#include <unordered_set>
#include <vector>
Go to the source code of this file.
Functions | |
void | print_arch_info () |
Prints detected platform architecture and SIMD capability. | |
int | main (int argc, char *argv[]) |
Entry point for running Monte Carlo simulations via CLI. | |
CLI runner for benchmarking Monte Carlo simulation methods.
Launches π-estimation simulations using various memory and threading strategies. Allows selection of individual method or batch benchmarking across all methods.
argv[1]
— Number of simulation trials (optional, default: 100_000_000)argv[2]
— Method name: Sequential
, Heap
, Pool
, SIMD
, or All
(optional, default: All)Each benchmark logs:
Definition in file main.cpp.
int main | ( | int | argc, |
char * | argv[] ) |
Entry point for running Monte Carlo simulations via CLI.
Parses CLI arguments and dispatches benchmark runs using one of the available simulation methods: Sequential, Heap, Pool, SIMD, or All.
Runs timing and aggregation logic per method and prints π estimates and execution times.
argc | Number of CLI arguments |
argv | Array of CLI argument strings |
Definition at line 81 of file main.cpp.
void print_arch_info | ( | ) |
Prints detected platform architecture and SIMD capability.
Detects and logs support for AVX2 (x86) or NEON (ARM) at runtime. Helps validate compatibility for SIMD-accelerated paths.
Definition at line 55 of file main.cpp.