mirror of
https://github.com/denoland/deno.git
synced 2025-01-05 05:49:20 -05:00
Use prebuilt hyperfine (#1755)
This commit is contained in:
parent
9a6d89fc40
commit
748e456cdb
2 changed files with 7 additions and 5 deletions
|
@ -169,10 +169,10 @@ def main(argv):
|
||||||
os.chdir(root_path)
|
os.chdir(root_path)
|
||||||
import_data_from_gh_pages()
|
import_data_from_gh_pages()
|
||||||
|
|
||||||
prebuilt.load_hyperfine()
|
hyperfine = prebuilt.load_hyperfine()
|
||||||
|
|
||||||
run([
|
run([
|
||||||
"hyperfine", "--ignore-failure", "--export-json", benchmark_file,
|
hyperfine, "--ignore-failure", "--export-json", benchmark_file,
|
||||||
"--warmup", "3"
|
"--warmup", "3"
|
||||||
] + [
|
] + [
|
||||||
deno_path + " " + " ".join(args) for [_, args] in exec_time_benchmarks
|
deno_path + " " + " ".join(args) for [_, args] in exec_time_benchmarks
|
||||||
|
|
|
@ -31,8 +31,10 @@ def load_sccache():
|
||||||
|
|
||||||
def load_hyperfine():
|
def load_hyperfine():
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
download_prebuilt("prebuilt/win/hyperfine.exe.sha1")
|
p = "prebuilt/win/hyperfine.exe"
|
||||||
elif sys.platform.startswith('linux'):
|
elif sys.platform.startswith('linux'):
|
||||||
download_prebuilt("prebuilt/linux64/hyperfine.sha1")
|
p = "prebuilt/linux64/hyperfine"
|
||||||
elif sys.platform == 'darwin':
|
elif sys.platform == 'darwin':
|
||||||
download_prebuilt("prebuilt/mac/hyperfine.sha1")
|
p = "prebuilt/mac/hyperfine"
|
||||||
|
download_prebuilt(p + ".sha1")
|
||||||
|
return os.path.join(root_path, p)
|
||||||
|
|
Loading…
Reference in a new issue