From 682848289b03f9ba8b14c5dc684306f670947216 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 30 Oct 2024 14:36:16 -0400 Subject: WARP: Update benches --- plugins/warp/benches/function.rs | 5 ++++- plugins/warp/benches/guid.rs | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/warp/benches/function.rs b/plugins/warp/benches/function.rs index c6f6d70d..487a3378 100644 --- a/plugins/warp/benches/function.rs +++ b/plugins/warp/benches/function.rs @@ -32,7 +32,10 @@ pub fn function_benchmark(c: &mut Criterion) { b.iter(|| { functions .par_iter() - .map_with(cache.clone(), |par_cache, func| par_cache.function(&func)) + .map_with(cache.clone(), |par_cache, func| { + let llil = func.low_level_il().ok()?; + Some(par_cache.function(func.as_ref(), llil.as_ref())) + }) .collect::>() }) }); diff --git a/plugins/warp/benches/guid.rs b/plugins/warp/benches/guid.rs index 577f80b5..04f856a7 100644 --- a/plugins/warp/benches/guid.rs +++ b/plugins/warp/benches/guid.rs @@ -13,7 +13,8 @@ pub fn guid_benchmark(c: &mut Criterion) { c.bench_function("function guid", |b| { b.iter(|| { - function_guid(&first_function, &vec![]); + let llil = first_function.low_level_il().unwrap(); + function_guid(&first_function, &llil); }) }); } -- cgit v1.3.1