All threads encode the SAME dict -> encoder_listencode_dict crit-sect.
()
| 344 | |
| 345 | |
| 346 | def scenario_shared_encoder_shared_dict(): |
| 347 | """All threads encode the SAME dict -> encoder_listencode_dict crit-sect.""" |
| 348 | encoder = _make_shared_encoder() |
| 349 | shared = SHARED_DICT |
| 350 | |
| 351 | def worker(): |
| 352 | deadline = time.monotonic() + DURATION |
| 353 | for _ in range(ITERATIONS): |
| 354 | try: |
| 355 | encoder(shared, 0) |
| 356 | except Exception: |
| 357 | pass |
| 358 | if time.monotonic() > deadline: |
| 359 | break |
| 360 | |
| 361 | run_scenario( |
| 362 | "shared encoder + shared dict (encoder_listencode_dict CS)", |
| 363 | [worker], |
| 364 | ) |
| 365 | |
| 366 | |
| 367 | def scenario_shared_encoder_shared_list(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…