()
| 47 | ]; |
| 48 | |
| 49 | pub fn run() -> Result<()> { |
| 50 | let cli_path = ensure_binaries_built(); |
| 51 | let server = SpacetimeDbGuard::spawn_in_temp_data_dir(); |
| 52 | let cli_config_dir = tempfile::tempdir().context("failed to create temporary CLI config directory")?; |
| 53 | let cli_config_path = cli_config_dir.path().join("config.toml"); |
| 54 | |
| 55 | let mut results = Vec::with_capacity(BENCHMARK_MODULES.len()); |
| 56 | for module in BENCHMARK_MODULES { |
| 57 | results.push(run_module_benchmark( |
| 58 | module, |
| 59 | &cli_path, |
| 60 | &cli_config_path, |
| 61 | &server.host_url, |
| 62 | )?); |
| 63 | } |
| 64 | check_transfer_fuel_ratio(&results)?; |
| 65 | |
| 66 | Ok(()) |
| 67 | } |
| 68 | |
| 69 | fn run_module_benchmark( |
| 70 | module: &BenchmarkModule, |
nothing calls this directly
no test coverage detected