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

Class BenchmarkCommand

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected