summaryrefslogtreecommitdiff
path: root/tools/benchmark.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/benchmark.py')
-rwxr-xr-xtools/benchmark.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/benchmark.py b/tools/benchmark.py
index 55e919643..03fcc497e 100755
--- a/tools/benchmark.py
+++ b/tools/benchmark.py
@@ -143,7 +143,7 @@ def run_strace_benchmarks(deno_exe, new_data):
thread_count = {}
syscall_count = {}
for (name, args) in exec_time_benchmarks:
- s = get_strace_summary([deno_exe] + args)
+ s = get_strace_summary([deno_exe, "run"] + args)
thread_count[name] = s["clone"]["calls"] + 1
syscall_count[name] = s["total"]["calls"]
new_data["thread_count"] = thread_count
@@ -162,7 +162,7 @@ def find_max_mem_in_bytes(time_v_output):
def run_max_mem_benchmark(deno_exe):
results = {}
for (name, args) in exec_time_benchmarks:
- cmd = ["/usr/bin/time", "-v", deno_exe] + args
+ cmd = ["/usr/bin/time", "-v", deno_exe, "run"] + args
try:
out = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError:
@@ -179,7 +179,8 @@ def run_exec_time(deno_exe, build_dir):
hyperfine, "--ignore-failure", "--export-json", benchmark_file,
"--warmup", "3"
] + [
- deno_exe + " " + " ".join(args) for [_, args] in exec_time_benchmarks
+ deno_exe + " run " + " ".join(args)
+ for [_, args] in exec_time_benchmarks
])
hyperfine_results = read_json(benchmark_file)
results = {}