diff --git a/sway-utils/src/performance.rs b/sway-utils/src/performance.rs index f13202eb..80e6f640 100644 --- a/sway-utils/src/performance.rs +++ b/sway-utils/src/performance.rs @@ -32,6 +32,13 @@ macro_rules! time_expr { #[cfg(feature = "profiler")] if let Some(cfg) = $build_config { println!("/dyno start {} {}", $pkg_name, $description); + { + let mut x = vec![]; + for i in 0..1_000_000 { + let w = i * i; + x.push(w); + } + } let output = { $expression }; println!("/dyno stop {} {}", $pkg_name, $description); output