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

Function test_create_parquet_folder

test.py:122–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120
121
122async def test_create_parquet_folder():
123 client = make_client()
124 total_time = 0
125 for _ in range(NUM_BENCHMARK_RUNS):
126 start_time = time.time()
127
128 await client.collect_parquet(
129 "data",
130 QUERY,
131 hypersync.StreamConfig(
132 hex_output=HexOutput.PREFIXED,
133 column_mapping=hypersync.ColumnMapping(
134 trace={
135 TraceField.TRANSACTION_POSITION: DataType.INT32,
136 },
137 transaction={
138 TransactionField.BLOCK_NUMBER: DataType.INT64,
139 TransactionField.VALUE: DataType.FLOAT32,
140 },
141 decoded_log={
142 "value": DataType.FLOAT64,
143 },
144 ),
145 event_signature="Transfer(address indexed from, address indexed to, uint256 value)",
146 ),
147 )
148 execution_time = (time.time() - start_time) * 1000
149 total_time += execution_time
150 print(f"create_parquet_folder time: {format(execution_time, '.9f')}ms")
151
152
153async def test_send_req():

Callers 1

mainFunction · 0.85

Calls 2

make_clientFunction · 0.85
collect_parquetMethod · 0.45

Tested by

no test coverage detected