Skip to content
Examples of speedup from Python asyncio-subprocess
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Build Status

Python asyncio subprocess Examples

Examples of speedup from Python asyncio-subprocess.

The first example is that of running compiler tests asynchronously, as would possibly be useful for build systems such as Meson.

  • PC with two physical cores, this script runs at twice the speed of the synchronous (serial) iteration.
  • HPC with numerous physical cores, aysncio method runs at four times the speed of serial.

It wasn't immediately clear why the HPC asyncio didn't run much faster than serial for loop. Was it an issue with the Python script or with some deadlock in the operating system involved in compilation. Hence the reason why we benchmark with an actual compilation task instead of sleep. This time ratio was roughly the same across Fortran compilers.

You can’t perform that action at this time.