|
63 | 63 |
|
64 | 64 | _IS_SYNC = False
|
65 | 65 |
|
66 |
| -TOTAL = [] |
67 |
| -TOTAL_WRITE = [] |
68 |
| -TOTAL_READ = [] |
69 |
| -print(f"TOTALS: {TOTAL, TOTAL_WRITE, TOTAL_READ}") |
| 66 | +# TOTAL = [] |
| 67 | +# TOTAL_WRITE = [] |
| 68 | +# TOTAL_READ = [] |
| 69 | +# print(f"TOTALS: {TOTAL, TOTAL_WRITE, TOTAL_READ}") |
70 | 70 |
|
71 | 71 |
|
72 | 72 | async def command_stream(
|
@@ -211,13 +211,13 @@ async def command_stream(
|
211 | 211 | read_start = time.monotonic()
|
212 | 212 | reply = await receive_message_stream(conn, request_id)
|
213 | 213 | read_elapsed = time.monotonic() - read_start
|
214 |
| - if name == "insert": |
215 |
| - TOTAL.append(write_elapsed + read_elapsed) |
216 |
| - TOTAL_READ.append(read_elapsed) |
217 |
| - TOTAL_WRITE.append(write_elapsed) |
218 |
| - if name == "endSessions": |
219 |
| - print( |
220 |
| - f"AVERAGE READ: {statistics.mean(TOTAL_READ)}, AVERAGE WRITE: {statistics.mean(TOTAL_WRITE)}, AVERAGE ELAPSED: {statistics.mean(TOTAL)}") |
| 214 | + # if name == "insert": |
| 215 | + # TOTAL.append(write_elapsed + read_elapsed) |
| 216 | + # TOTAL_READ.append(read_elapsed) |
| 217 | + # TOTAL_WRITE.append(write_elapsed) |
| 218 | + # if name == "endSessions": |
| 219 | + # print( |
| 220 | + # f"AVERAGE READ: {statistics.mean(TOTAL_READ)}, AVERAGE WRITE: {statistics.mean(TOTAL_WRITE)}, AVERAGE ELAPSED: {statistics.mean(TOTAL)}") |
221 | 221 | conn.more_to_come = reply.more_to_come
|
222 | 222 | unpacked_docs = reply.unpack_response(
|
223 | 223 | codec_options=codec_options, user_fields=user_fields
|
|
0 commit comments