summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-10-30 14:36:16 -0400
committerMason Reed <mason@vector35.com>2024-10-30 15:40:40 -0400
commit682848289b03f9ba8b14c5dc684306f670947216 (patch)
tree76e487d3beeba5de2ce542ef5690fc5175592e6f /plugins
parent494a0b2ba4f7e82c06c7267ff19b2ac7a72d8219 (diff)
WARP: Update benches
Diffstat (limited to 'plugins')
-rw-r--r--plugins/warp/benches/function.rs5
-rw-r--r--plugins/warp/benches/guid.rs3
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);
})
});
}