Skip to content

Instantly share code, notes, and snippets.

@cr0hn
Created August 5, 2019 13:58
Show Gist options
  • Save cr0hn/cd5c78c3e460de40fa96d05934191076 to your computer and use it in GitHub Desktop.
Save cr0hn/cd5c78c3e460de40fa96d05934191076 to your computer and use it in GitHub Desktop.
PyInstaller vs Nuitka for Kapow!

Compilations was made in a Docker Ubuntu x64 image. There the results:

Nuikta

Command v1

python3 -m nuitka --follow-imports -j 4 --plugin-enable=multiprocessing kapow.py

File size

23MB

Binary startup time

0.068 sec

Notes

No incluye las librerías del S.O. y no es standalone

Command v2

python3 -m nuitka --follow-stdlib --show-progress --standalone --python-flag=no_site --follow-imports -j 4 --plugin-enable=multiprocessing --lto kapow.py

File size

30MB

Binary startup time

0.068 sec

Notes

Resulting binary doesn't include O.S. libraries and it's not standalone

PyInstaller

Command v1

pyinstaller kapow.spec

File size

8.2 MB

Binary startup time

2.7 sec

Notes

Resulting binary doesn't include O.S.

Command v2

pyinstaller -F kapow.spec

File size

14 MB

Binary startup time

14 sec

Notes

Resulting binary include O.S. libraries and it's standalone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment