From a44349dfdfecacdd4ccd343a984b05abb728bf88 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 8 Jan 2021 03:08:51 +0100 Subject: feat: denort binary (#9041) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds new binary target called "denort". It is a "lite" version of "deno" binary that can only execute code embedded inside the binary itself. Co-authored-by: Bartek IwaƄczuk --- cli/bench/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/bench') diff --git a/cli/bench/main.rs b/cli/bench/main.rs index ea693fb3a..d796237d1 100644 --- a/cli/bench/main.rs +++ b/cli/bench/main.rs @@ -202,6 +202,12 @@ fn get_binary_sizes(target_dir: &PathBuf) -> Result { Value::Number(Number::from(test_util::deno_exe_path().metadata()?.len())), ); + // add up size for denort + sizes.insert( + "denort".to_string(), + Value::Number(Number::from(test_util::denort_exe_path().metadata()?.len())), + ); + // add up size for everything in target/release/deps/libswc* let swc_size = rlib_size(&target_dir, "libswc"); println!("swc {} bytes", swc_size); -- cgit v1.2.3