def METHOD_NAME(dd_run_check, dbm_instance, high_cardinality_instance):
    dbm_instance['query_activity']['enabled'] = False
    check = SQLServer(CHECK_NAME, {}, [dbm_instance])
    queries = HighCardinalityQueries(high_cardinality_instance)
    _check_queries_is_ready(queries)
    def _run_queries_and_time_check():
        queries_to_create = 4000
        thread_count = 20
        hc_queries = [queries.create_high_cardinality_query() for _ in range(queries_to_create)]
        def _run_queries(idx):
            conn = queries.get_conn()
            queries_to_run = queries_to_create // thread_count
            for q in hc_queries[idx * queries_to_run : (idx + 1) * queries_to_run]:
                conn.execute(q)
        threads = [threading.Thread(target=_run_queries, args=(i,)) for i in range(thread_count)]
        for t in threads:
            t.start()
        for t in threads:
            t.join()
        start = time.time()
        dd_run_check(check)
        return time.time() - start
    # First run will load the test queries into the StatementMetrics state
    first_run_elapsed = _run_queries_and_time_check()
    # Second run will emit metrics based on the diff of the current and prev state
    second_run_elapsed = _run_queries_and_time_check()
    total_elapsed_time = first_run_elapsed + second_run_elapsed
    assert total_elapsed_time <= 60