From 1729bdb0d7f504436cacc07bedba642591fdb0cb Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Mon, 24 Sep 2018 18:12:52 -0400 Subject: Add thread count benchmark (#811) --- tools/benchmark_test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tools/benchmark_test.py (limited to 'tools/benchmark_test.py') diff --git a/tools/benchmark_test.py b/tools/benchmark_test.py new file mode 100644 index 000000000..017314fbb --- /dev/null +++ b/tools/benchmark_test.py @@ -0,0 +1,10 @@ +import sys +import os +from benchmark import run_thread_count_benchmark + + +def benchmark_test(deno_path): + if "linux" in sys.platform: + thread_count_dict = run_thread_count_benchmark(deno_path) + assert "set_timeout" in thread_count_dict + assert thread_count_dict["set_timeout"] > 1 -- cgit v1.2.3