summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2020-04-30 17:23:40 +0200
committerGitHub <noreply@github.com>2020-04-30 11:23:40 -0400
commit80e22111416751ce34dbc5cb32ffa9f293517370 (patch)
tree5b3fe5d16ee07143e5dcb2c766a1f48c296ad9d6 /tools
parent4993a6504b4b447e0e02454094cffb02ee18c081 (diff)
Unstable methods should not appear in runtime or d.ts (#4957)
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/benchmark.py2
-rwxr-xr-xtools/http_benchmark.py9
2 files changed, 8 insertions, 3 deletions
diff --git a/tools/benchmark.py b/tools/benchmark.py
index 031da263b..a921feaf8 100755
--- a/tools/benchmark.py
+++ b/tools/benchmark.py
@@ -213,7 +213,7 @@ def bundle_benchmark(deno_exe):
for name, url in bundles.items():
# bundle
path = name + ".bundle.js"
- run([deno_exe, "bundle", url, path])
+ run([deno_exe, "bundle", "--unstable", url, path])
# get size of bundle
assert os.path.exists(path)
sizes[name] = os.path.getsize(path)
diff --git a/tools/http_benchmark.py b/tools/http_benchmark.py
index fba11ba32..a4576695c 100755
--- a/tools/http_benchmark.py
+++ b/tools/http_benchmark.py
@@ -35,7 +35,11 @@ def get_port(port=None):
def deno_tcp(deno_exe):
port = get_port()
deno_cmd = [
- deno_exe, "run", "--allow-net", "tools/deno_tcp.ts",
+ # TODO(lucacasonato): remove unstable when stabilized
+ deno_exe,
+ "run",
+ "--allow-net",
+ "tools/deno_tcp.ts",
server_addr(port)
]
print "http_benchmark testing DENO tcp."
@@ -45,7 +49,8 @@ def deno_tcp(deno_exe):
def deno_http(deno_exe):
port = get_port()
deno_cmd = [
- deno_exe, "run", "--allow-net", "std/http/http_bench.ts",
+ deno_exe, "run", "--allow-net", "--reload", "--unstable",
+ "std/http/http_bench.ts",
server_addr(port)
]
print "http_benchmark testing DENO using net/http."