Skip to content

utahplt/static-python-perf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Python Perf

Running on CloudLab

We have a private CloudLab profile to install Cinder (commit 1aeff3) and fire up Facebook's Docker image.

The profile runs the script here, which is public: https://users.cs.utah.edu/~blg/sp-cloudlab.tar.gz

The CloudLab profile is named sp-perf/sp-demo. If you have access, the files are here: https://www.cloudlab.us/show-profile.php?uuid=369bda87-5444-11ef-b3bd-e4434b2381fc

Steps to Run Static Python

(Taken from cinder/python-build-env.)

Note

You must have already installed and set up Docker on your machine.

  1. Clone the cinder respotory.
git clone https://github.com/facebookincubator/cinder.git
  1. Run the following docker command.
docker run -v "$PWD/cinder:/vol" -w /vol -it --rm ghcr.io/facebookincubator/cinder/python-build-env:latest bash
  1. pull the changes (git pull).
  2. ls, and navigate to the file that needs to be run (./call-method/shallow).
  3. Run the following command (maybe using python.exe instead):
/vol/python -m cinderx.compiler --static module.py

(old command used -m compiler)

Related Work

Static Python: https://users.cs.utah.edu/~blg/publications/publications.html#lgmvpk-pj-2023

Reticulated Python (Retic): https://dl.acm.org/doi/10.1145/3093333.3009849

Retic Performance: https://users.cs.utah.edu/~blg/publications/publications.html#gm-pepm-2018

More Retic Performance: https://dl.acm.org/doi/10.1145/3359619.3359742

Grift, sampling performance: https://akuhlens.github.io/paper/pldi19.pdf

Blog post, mypy frustrations: https://www.uninformativ.de/blog/postings/2022-04-21/0/POSTING-en.html

About

Benchmarking Static Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages