summaryrefslogtreecommitdiff
path: root/tools/benchmark.py
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2018-10-20 19:56:16 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-10-20 19:56:16 -0700
commit86409eb8369107a4c4944d3db0090ffc79395823 (patch)
tree20fd27ed9f29769cd09e7daea7343f5c3b162f2c /tools/benchmark.py
parentc85311dd7dbad09242633d2ee7a83fdb1cbd1d7f (diff)
Add Rust hyper http benchmark (#1043)
* Add go net/http benchmark * Forget about Go. Let's do Rust Hyper * Update BUILD.gn * Rename
Diffstat (limited to 'tools/benchmark.py')
-rwxr-xr-xtools/benchmark.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/benchmark.py b/tools/benchmark.py
index 943883f8f..4bdd3b39a 100755
--- a/tools/benchmark.py
+++ b/tools/benchmark.py
@@ -184,8 +184,9 @@ def main(argv):
# Cannot run throughput benchmark on windows because they don't have nc or
# pipe.
if os.name != 'nt':
+ hyper_hello_path = os.path.join(build_dir, "hyper_hello")
new_data["throughput"] = run_throughput(deno_path)
- new_data["req_per_sec"] = http_benchmark(deno_path)
+ new_data["req_per_sec"] = http_benchmark(deno_path, hyper_hello_path)
if "linux" in sys.platform:
# Thread count test, only on linux
new_data["thread_count"] = run_thread_count_benchmark(deno_path)