Skip to content

Commit

Permalink
bench(feat): Specify architecture in log output.
Browse files Browse the repository at this point in the history
  • Loading branch information
c272 committed Apr 29, 2024
1 parent 4b7c8c8 commit 399dd95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/bench/src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ pub(crate) struct BenchmarkLog {
/// The time at which the benchmarking run ended, in UTC time.
pub ended_at: DateTime<Utc>,

/// The architecture on which the benchmarking was performed.
pub arch: String,

/// The level of optimisations used for Cobalt.
pub opt_level: String,

Expand Down
3 changes: 3 additions & 0 deletions crates/bench/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::env;

use clap::Parser;
use cli::Cli;
use log::BenchmarkLog;
Expand All @@ -21,6 +23,7 @@ fn main() -> miette::Result<()> {
let log = BenchmarkLog {
started_at,
ended_at,
arch: env::consts::ARCH.into(),
opt_level: cfg.cobalt_opt_level.clone(),
hw_security_enabled: !cfg.disable_hw_security,
benchmarks,
Expand Down

0 comments on commit 399dd95

Please sign in to comment.