summaryrefslogtreecommitdiff
path: root/tools/benchmark_test.py
blob: 017314fbb8829c48926fec59236aa4d257ed8124 (plain)
1
2
3
4
5
6
7
8
9
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