diff options
| author | Mason Reed <mason@vector35.com> | 2024-10-30 14:36:16 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-10-30 15:40:40 -0400 |
| commit | 682848289b03f9ba8b14c5dc684306f670947216 (patch) | |
| tree | 76e487d3beeba5de2ce542ef5690fc5175592e6f /plugins/warp/benches/function.rs | |
| parent | 494a0b2ba4f7e82c06c7267ff19b2ac7a72d8219 (diff) | |
WARP: Update benches
Diffstat (limited to 'plugins/warp/benches/function.rs')
| -rw-r--r-- | plugins/warp/benches/function.rs | 5 |
1 files changed, 4 insertions, 1 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<_>>() }) }); |
