Skip to content

Commit

Permalink
WIP: disable certain benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianFranzen committed Jul 17, 2024
1 parent 9c3245b commit e876056
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions node/src/command.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
benchmarking::{inherent_benchmark_data, RemarkBuilder, TransferKeepAliveBuilder},
//benchmarking::{inherent_benchmark_data, RemarkBuilder, TransferKeepAliveBuilder},
chain_spec,
cli::{Cli, Subcommand},
service::{self, FullClient},
Expand Down Expand Up @@ -152,7 +152,7 @@ where

cmd.run(config, partial.client, db, storage)
},
BenchmarkCmd::Overhead(cmd) => {
/*BenchmarkCmd::Overhead(cmd) => {
// ensure that we keep the task manager alive
let partial = service::new_partial::<RuntimeApi>(&config)?;
let ext_builder = RemarkBuilder::<Runtime, RuntimeApi>::new(partial.client.clone());
Expand Down Expand Up @@ -187,10 +187,11 @@ where
Vec::new(),
&ext_factory,
)
},
},*/
BenchmarkCmd::Machine(cmd) => {
cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone())
},
_ => todo!("Does not compile at the moment"),
}
})
},
Expand Down
2 changes: 1 addition & 1 deletion node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mod chain_spec;
#[macro_use]
mod service;
mod benchmarking;
//mod benchmarking;
mod cli;
mod command;
mod rpc;
Expand Down

0 comments on commit e876056

Please sign in to comment.