chunk size | chunk count | AIO writer test | AIO reader test | Thread writer test | Thread reader test |
---|---|---|---|---|---|
1048576 | 200 | 1.06 s ± 133 ms per loop | 1.13 s ± 132 ms per loop | 1.21 s ± 1.41 s per loop | 808 ms ± 33.7 ms per loop |
1048576 | 100 | 558 ms ± 130 ms per loop | 542 ms ± 53.4 ms per loop | 513 ms ± 137 ms per loop | 427 ms ± 34.4 ms per loop |
32768 | 1000 | 644 ms ± 125 ms per loop | 649 ms ± 33.1 ms per loop | 149 ms ± 38 ms per loop | 129 ms ± 6.06 ms per loop |
1024 | 100 | 50.2 ms ± 1.99 ms per loop | 47.6 ms ± 3.71 ms per loop | 1.05 ms ± 29.3 µs per loop | 926 µs ± 62 µs per loop |
Last active
September 30, 2024 21:39
-
-
Save mosquito/673a85c0be48af2ee2d382aaa0c1e3f0 to your computer and use it in GitHub Desktop.
aiofile tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==================================================================================================== | |
Running tests with chunk_size: 1048576 chunk_count: 200 | |
================== | |
AIO writer test | |
1.06 s ± 133 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) | |
================== | |
================== | |
AIO reader test | |
1.13 s ± 132 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) | |
================== | |
================== | |
Thread writer test | |
The slowest run took 8.61 times longer than the fastest. This could mean that an intermediate result is being cached. | |
1.21 s ± 1.41 s per loop (mean ± std. dev. of 7 runs, 1 loop each) | |
================== | |
================== | |
Thread reader test | |
808 ms ± 33.7 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) | |
================== | |
==================================================================================================== | |
Running tests with chunk_size: 1048576 chunk_count: 100 | |
================== | |
AIO writer test | |
558 ms ± 130 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) | |
================== | |
================== | |
AIO reader test | |
542 ms ± 53.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) | |
================== | |
================== | |
Thread writer test | |
513 ms ± 137 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) | |
================== | |
================== | |
Thread reader test | |
427 ms ± 34.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) | |
================== | |
==================================================================================================== | |
Running tests with chunk_size: 32768 chunk_count: 1000 | |
================== | |
AIO writer test | |
644 ms ± 125 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) | |
================== | |
================== | |
AIO reader test | |
649 ms ± 33.1 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) | |
================== | |
================== | |
Thread writer test | |
149 ms ± 38 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) | |
================== | |
================== | |
Thread reader test | |
129 ms ± 6.06 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) | |
================== | |
==================================================================================================== | |
Running tests with chunk_size: 1024 chunk_count: 100 | |
================== | |
AIO writer test | |
50.2 ms ± 1.99 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) | |
================== | |
================== | |
AIO reader test | |
47.6 ms ± 3.71 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) | |
================== | |
================== | |
Thread writer test | |
1.05 ms ± 29.3 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) | |
================== | |
================== | |
Thread reader test | |
926 µs ± 62 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) | |
================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there more recent evaluation?
(FYI - notebook not loading)