Skip to contents

Tests PARROT performance across different network sizes

Usage

benchmark_parrot_scalability(
  sizes = c(50, 100, 200, 500, 1000),
  n_reps = 3,
  sparse_graph = TRUE
)

Arguments

sizes

Vector of network sizes to test

n_reps

Number of repetitions per size

sparse_graph

Whether to use sparse graph structure

Value

Data frame with timing results

Examples

# \donttest{
results <- benchmark_parrot_scalability(sizes = c(20, 50), n_reps = 2)
#> Benchmarking PARROT scalability...
#> 
#> Testing n=20 nodes:
#>   Rep 1/2... 0.36s
#>   Rep 2/2... 0.33s
#> 
#> Testing n=50 nodes:
#>   Rep 1/2... 0.32s
#>   Rep 2/2... 0.32s
#> 
#> 
#> SCALABILITY SUMMARY
#> ===================
#>   n_nodes total_time.mean total_time.sd
#> 1      20    3.473991e-01  2.140301e-02
#> 2      50    3.172370e-01  6.760355e-05
#> 
#> Estimated complexity: O(n^-0.10)
# }