diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-11-02 21:54:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 21:54:12 +0100 |
commit | 93deefcae221e03358dd259f1958930331654afc (patch) | |
tree | b7a77f5d41242ba35e3e6cbde56bc077561c692d | |
parent | d672e1405dd7085a060625fc320d063f7f7970a2 (diff) |
chore: remove unused tools/ scripts (#8222)
-rw-r--r-- | tools/hash_benchmark.py | 49 | ||||
-rwxr-xr-x | tools/sync_node_modules.py | 6 | ||||
-rwxr-xr-x | tools/sync_python_modules.py | 6 |
3 files changed, 0 insertions, 61 deletions
diff --git a/tools/hash_benchmark.py b/tools/hash_benchmark.py deleted file mode 100644 index f224474ed..000000000 --- a/tools/hash_benchmark.py +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env python -# Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -# Performs benchmark on hash algorithms - -import os -import sys -import time -import subprocess - -algorithms = [ - "md5", - "sha1", - "sha224", - "sha256", - "sha512", - "sha3-224", - "sha3-256", - "sha3-384", - "sha3-512", -] - - -def run_benchmark(deno_exe, method, input_file): - # compile - subprocess.call([deno_exe, "run", "cli/tests/hash.ts"]) - - for alg in algorithms: - args = [ - deno_exe, "run", "--allow-read", "cli/tests/hash.ts", method, alg, - input_file - ] - - p = subprocess.Popen(args, stdout=subprocess.PIPE) - (out, _) = p.communicate() - - elapsed = out.split(':')[1].strip() - print("[{}] {}".format(alg, elapsed)) - - -def main(): - if len(sys.argv) < 4: - print("Usage ./tools/hash_benchmark.py path/to/deno method input") - sys.exit(1) - - run_benchmark(sys.argv[1], sys.argv[2], sys.argv[3]) - - -if __name__ == '__main__': - main() diff --git a/tools/sync_node_modules.py b/tools/sync_node_modules.py deleted file mode 100755 index d7dc42fd1..000000000 --- a/tools/sync_node_modules.py +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python -# Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import third_party -import util -util.enable_ansi_colors() -third_party.run_yarn() diff --git a/tools/sync_python_modules.py b/tools/sync_python_modules.py deleted file mode 100755 index fa31e1e3a..000000000 --- a/tools/sync_python_modules.py +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python -# Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import third_party -import util -util.enable_ansi_colors() -third_party.run_pip() |