未验证 提交 b9e368cb 编写于 作者: R Ryan Dahl 提交者: GitHub

Add snapshot_compiler.bin to binary size benchmark (#1611)

上级 514b7d33
......@@ -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
......
......@@ -98,7 +98,7 @@ export function createSha1List(data) {
}
export function formatMB(bytes) {
return Math.round(bytes / (1024 * 1024));
return (bytes / (1024 * 1024)).toFixed(2);
}
export function formatReqSec(reqPerSec) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册