summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/benchmark.py8
-rw-r--r--website/app.js2
2 files changed, 8 insertions, 2 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
diff --git a/website/app.js b/website/app.js
index 359fbf1ae..b1bce55aa 100644
--- a/website/app.js
+++ b/website/app.js
@@ -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) {