summaryrefslogtreecommitdiff
path: root/tools/benchmark.py
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-02-12 02:57:26 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-02-11 12:57:26 -0500
commitd26655371b796cf5dad762d1b7154c25251cb41d (patch)
tree756f7710b86d2678fbdc2434ae1630741c19edc6 /tools/benchmark.py
parent90c7af27d7959e94a25f635e21b8d77cb347e135 (diff)
fix: improve formatting (#1732)
Diffstat (limited to 'tools/benchmark.py')
-rwxr-xr-xtools/benchmark.py23
1 files changed, 14 insertions, 9 deletions
diff --git a/tools/benchmark.py b/tools/benchmark.py
index ce08c8ea3..c9b9823de 100755
--- a/tools/benchmark.py
+++ b/tools/benchmark.py
@@ -57,15 +57,20 @@ def import_data_from_gh_pages():
def get_binary_sizes(build_dir):
path_dict = {
- "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"),
- "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")
+ "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"),
+ "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():