Add no-tree-shaking variant to the bootstrap benchmarks.
Change-Id: Ic7cc4b4de94b0456db8da45661ad346da543ddab
diff --git a/tools/run_bootstrap_benchmark.py b/tools/run_bootstrap_benchmark.py
index 90834f8..e12051b 100755
--- a/tools/run_bootstrap_benchmark.py
+++ b/tools/run_bootstrap_benchmark.py
@@ -66,4 +66,15 @@
utils.PINNED_PGR8_JAR)
print "BootstrapR8PGDex(CodeSize):", utils.uncompressed_size(d8_pg_output)
+ r8_notreeshaking_output = os.path.join(temp, 'r8-notreeshaking.zip')
+ return_code = minify_tool.minify_tool(
+ input_jar=utils.PINNED_R8_JAR,
+ output_jar=r8_notreeshaking_output,
+ debug=False,
+ build=False,
+ benchmark_name="BootstrapR8NoTreeShaking",
+ additional_args=["--no-tree-shaking"])
+ if return_code != 0:
+ sys.exit(return_code)
+
sys.exit(0)