BREAKING: KCL @settings are the source of truth for units (#5808)
This commit is contained in:
@ -76,7 +76,7 @@ fn run_benchmarks(c: &mut Criterion) {
|
||||
group.bench_function(format!("execute_{}", dir_name), |b| {
|
||||
b.iter(|| {
|
||||
if let Err(err) = rt.block_on(async {
|
||||
let ctx = kcl_lib::ExecutorContext::new_with_default_client(Default::default()).await?;
|
||||
let ctx = kcl_lib::ExecutorContext::new_with_default_client().await?;
|
||||
let mut exec_state = kcl_lib::ExecState::new(&ctx);
|
||||
ctx.run(black_box(&program), &mut exec_state).await?;
|
||||
ctx.close().await;
|
||||
|
Reference in New Issue
Block a user