()
| 162 | |
| 163 | |
| 164 | async 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 | |
| 183 | async def test_send_events_req(): |
no test coverage detected