diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/warp/benches/function.rs | 5 | ||||
| -rw-r--r-- | plugins/warp/benches/guid.rs | 3 |
2 files changed, 6 insertions, 2 deletions
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::<Vec<_>>() }) }); 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); }) }); } |
