MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / BenchmarkCommand

Class BenchmarkCommand

crates/exec-harness/src/lib.rs:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19/// targets from codspeed.yaml.
20#[derive(Debug, Clone, Serialize, Deserialize)]
21pub struct BenchmarkCommand {
22 /// The command and arguments to execute
23 pub command: Vec<String>,
24
25 /// Optional benchmark name
26 #[serde(default, skip_serializing_if = "Option::is_none")]
27 pub name: Option<String>,
28
29 /// Walltime execution options (flattened into the JSON object)
30 #[serde(default)]
31 pub walltime_args: walltime::WalltimeExecutionArgs,
32}
33
34/// Read and parse benchmark commands from stdin as JSON
35pub fn read_commands_from_stdin() -> Result<Vec<BenchmarkCommand>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected