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

Function test_send_req_arrow

test.py:164–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162
163
164async def test_send_req_arrow():
165 client = make_client()
166 import pyarrow
167
168 total_time = 0
169 for _ in range(NUM_BENCHMARK_RUNS):
170 start_time = time.time()
171 res = await client.get_arrow(QUERY)
172 execution_time = (time.time() - start_time) * 1000
173 assert type(res.data.blocks) is pyarrow.lib.Table
174 assert res.data.blocks._is_initialized()
175 assert type(res.data.transactions) is pyarrow.lib.Table
176 assert res.data.transactions._is_initialized()
177 assert type(res.data.logs) is pyarrow.lib.Table
178 assert res.data.logs._is_initialized()
179 total_time += execution_time
180 print(f"send_req_arrow time: {format(execution_time, '.9f')}ms")
181
182
183async def test_send_events_req():

Callers 1

mainFunction · 0.85

Calls 2

make_clientFunction · 0.85
get_arrowMethod · 0.45

Tested by

no test coverage detected