summaryrefslogtreecommitdiff
path: root/tools/benchmark_test.py
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2018-09-24 18:12:52 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-09-24 18:12:52 -0400
commit1729bdb0d7f504436cacc07bedba642591fdb0cb (patch)
tree8d9fb23ef2b942e8df6fea7b6637185fa1a0d709 /tools/benchmark_test.py
parentd6a97ae4f02a7150165877e304778c96b90ddd5a (diff)
Add thread count benchmark (#811)
Diffstat (limited to 'tools/benchmark_test.py')
-rw-r--r--tools/benchmark_test.py10
1 files changed, 10 insertions, 0 deletions
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