Benchmark QIPRNG against other random number generators
This function benchmarks the QIPRNG package against other random number generators in R. It provides detailed performance comparisons across different sample sizes, configurations, and distributions.Usage
Parameters
Vector of sample sizes to benchmark
List of generator functions to compare; each function should take n as input and return n random numbers
Character vector of distributions to test (“uniform”, “normal”, “exponential”)
Number of repetitions for each benchmark
List of QIPRNG configurations to test
Whether to export raw benchmark data
Path to save results if export_data is TRUE
Returns
- A list containing benchmark results and plots:
- results: Raw benchmark data from microbenchmark
- plots: A list of ggplot objects visualizing the results