From 80e22111416751ce34dbc5cb32ffa9f293517370 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Thu, 30 Apr 2020 17:23:40 +0200 Subject: Unstable methods should not appear in runtime or d.ts (#4957) Co-authored-by: Kitson Kelly --- tools/benchmark.py | 2 +- tools/http_benchmark.py | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'tools') 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." -- cgit v1.2.3