MCPcopy Create free account
hub / github.com/Tong89/smartNode / bench_engine

Function bench_engine

tests/test_perf_benchmarks.py:97–99  ·  view source on GitHub ↗

不启动后台线程的固定种子引擎,模块作用域,避免重复初始化开销。

()

Source from the content-addressed store, hash-verified

95
96@pytest.fixture(scope="module")
97def bench_engine():
98 """不启动后台线程的固定种子引擎,模块作用域,避免重复初始化开销。"""
99 return create_engine(seed=42, autostart=False)
100
101
102# --------------------------------------------------------------------------- #

Callers

nothing calls this directly

Calls 1

create_engineFunction · 0.90

Tested by

no test coverage detected