diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-01-30 14:01:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-30 14:01:13 -0500 |
commit | b9e368cb4c24a8fb52d151c2d80288642433156d (patch) | |
tree | 810551997211f24a793352cef02ae041090a2167 /tools/benchmark.py | |
parent | 514b7d335977eda1b7b110d3ad5f9f93ac60af5b (diff) |
Add snapshot_compiler.bin to binary size benchmark (#1611)
Diffstat (limited to 'tools/benchmark.py')
-rwxr-xr-x | tools/benchmark.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/benchmark.py b/tools/benchmark.py index 000d12993..ce08c8ea3 100755 --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -60,10 +60,16 @@ def get_binary_sizes(build_dir): "deno": os.path.join(build_dir, "deno" + executable_suffix), "main.js": os.path.join(build_dir, "gen/bundle/main.js"), "main.js.map": os.path.join(build_dir, "gen/bundle/main.js.map"), - "snapshot_deno.bin": os.path.join(build_dir, "gen/snapshot_deno.bin") + "compiler.js": os.path.join(build_dir, "gen/bundle/compiler.js"), + "compiler.js.map": os.path.join(build_dir, + "gen/bundle/compiler.js.map"), + "snapshot_deno.bin": os.path.join(build_dir, "gen/snapshot_deno.bin"), + "snapshot_compiler.bin": os.path.join(build_dir, + "gen/snapshot_compiler.bin") } sizes = {} for name, path in path_dict.items(): + assert os.path.exists(path) sizes[name] = os.path.getsize(path) return sizes |