summaryrefslogtreecommitdiff
path: root/tools/throughput_benchmark.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-15 16:54:51 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-16 09:37:38 -0400
commit62962e71fe244a4b0992185f2ba900ba3fd5005e (patch)
tree764dfd79857f71591347023b5cc330567dec6920 /tools/throughput_benchmark.py
parent590feb1c7145bc2bca926241e14d00f066fadf90 (diff)
Fix throughput_benchmark
Diffstat (limited to 'tools/throughput_benchmark.py')
-rwxr-xr-xtools/throughput_benchmark.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/throughput_benchmark.py b/tools/throughput_benchmark.py
index be3278b57..b9fdc8a35 100755
--- a/tools/throughput_benchmark.py
+++ b/tools/throughput_benchmark.py
@@ -31,7 +31,7 @@ def tcp(deno_exe, megs):
echo_server = subprocess.Popen(
[deno_exe, "--allow-net", "tests/echo_server.ts", ADDR])
- time.sleep(1) # wait for deno to wake up. TODO racy.
+ time.sleep(5) # wait for deno to wake up. TODO racy.
try:
start = time.time()
cmd = ("head -c %s /dev/zero " % size) + "| nc " + ADDR.replace(
@@ -50,5 +50,5 @@ if __name__ == '__main__':
if not deno_exe or not megs:
print "Usage ./tools/throughput_benchmark.py out/debug/deno 100"
sys.exit(1)
- secs = tcp_throughput_benchmark(sys.argv[1], megs)
+ secs = tcp(sys.argv[1], megs)
print secs, "seconds"