summaryrefslogtreecommitdiff
path: root/tools/benchmark.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-15 16:44:35 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-16 09:37:38 -0400
commitc61a0f2f84e619a70704b59fd72cd7da863d4461 (patch)
tree275323c80a4791b311073150f1df8d98d3a8df1b /tools/benchmark.py
parent62962e71fe244a4b0992185f2ba900ba3fd5005e (diff)
First pass at http benchmark.
Diffstat (limited to 'tools/benchmark.py')
-rwxr-xr-xtools/benchmark.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/benchmark.py b/tools/benchmark.py
index 4422764aa..856ee3c85 100755
--- a/tools/benchmark.py
+++ b/tools/benchmark.py
@@ -14,6 +14,7 @@ from util import run, run_output, root_path, build_path, executable_suffix
import tempfile
import http_server
import throughput_benchmark
+from http_benchmark import http_benchmark
# The list of the tuples of the benchmark name and arguments
exec_time_benchmarks = [
@@ -183,6 +184,7 @@ def main(argv):
# pipe.
if os.name != 'nt':
new_data["throughput"] = run_throughput(deno_path)
+ new_data["req_per_sec"] = http_benchmark(deno_path)
if "linux" in sys.platform:
# Thread count test, only on linux
new_data["thread_count"] = run_thread_count_benchmark(deno_path)