MCPcopy Create free account
hub / github.com/enviodev/hypersync-client-python / test_send_events_req

Function test_send_events_req

test.py:183–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181
182
183async def test_send_events_req():
184 client = make_client()
185 total_time = 0
186 for _ in range(NUM_BENCHMARK_RUNS):
187 start_time = time.time()
188 await client.get_events(QUERY)
189 execution_time = (time.time() - start_time) * 1000
190 total_time += execution_time
191 print(f"send_events_req time: {format(execution_time, '.9f')}ms")
192
193
194async def test_get_height():

Callers 1

mainFunction · 0.85

Calls 2

make_clientFunction · 0.85
get_eventsMethod · 0.45

Tested by

no test coverage detected