()
| 120 | |
| 121 | |
| 122 | async 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 | |
| 153 | async def test_send_req(): |
no test coverage detected