mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-12-03 21:31:03 +00:00
Refine JSON schema and command metadata
This commit is contained in:
1 parent
c5d3a81fc5
commit
0d86e78ede
15 files changed
+59
-60
No files matched your search
@@ -475,13 +475,13 @@ impl<'a> Benchmark<'a> {
|
||||
|
||||
self.run_cleanup_command(self.command.get_parameters().iter().cloned(), output_policy)?;
|
||||
|
||||
let command = self.command.get_name();
|
||||
let command_raw = self.command.get_command_line();
|
||||
let command_raw = (command_raw != command).then_some(command_raw);
|
||||
let command = self.command.get_command_line();
|
||||
let name = self.command.get_name();
|
||||
let name = (name != command).then_some(name);
|
||||
|
||||
Ok(BenchmarkResult {
|
||||
command,
|
||||
command_raw,
|
||||
name,
|
||||
measurements,
|
||||
parameters: self
|
||||
.command
|
||||
|
||||
Reference in new issue
Block a user