[Python] Python IO – show read speed interactively

Discussão em 'Python' iniciado por Stack, Fevereiro 13, 2025.

  1. Stack

    Stack Membro Participativo

    is it possible to show reading speed interactively when reading a file?

    The reason is that I would like to measure the speed when reading a file from network drive via Python and compare it against copying the file to local drive manually.

    Let's say I have a simple open read function:

    with open("path/to/network/drive/file", "rb") as f: # Show speed interactively when reading
    # do stuff


    Thanks!

    Continue reading...

Compartilhe esta Página