MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / run

Function run

tools/ci/src/keynote_bench.rs:49–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47];
48
49pub 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
69fn run_module_benchmark(
70 module: &BenchmarkModule,

Callers

nothing calls this directly

Calls 8

ensure_binaries_builtFunction · 0.85
run_module_benchmarkFunction · 0.85
joinMethod · 0.80
OkFunction · 0.50
pathMethod · 0.45
lenMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected