summaryrefslogtreecommitdiff
path: root/cli/bench/main.rs
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-01-08 03:08:51 +0100
committerGitHub <noreply@github.com>2021-01-08 03:08:51 +0100
commita44349dfdfecacdd4ccd343a984b05abb728bf88 (patch)
tree690b5047cc54d62ce27013ebb199e9bdc7de0937 /cli/bench/main.rs
parente61e81eb57351782862aa50775ce4348f10b1856 (diff)
feat: denort binary (#9041)
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 <biwanczuk@gmail.com>
Diffstat (limited to 'cli/bench/main.rs')
-rw-r--r--cli/bench/main.rs6
1 files changed, 6 insertions, 0 deletions
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> {
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);