Skip to content

Instantly share code, notes, and snippets.

@mattip
Created April 3, 2018 03:23
Show Gist options
  • Save mattip/e99d5a3873df4460daffba0b74c8e23e to your computer and use it in GitHub Desktop.
Save mattip/e99d5a3873df4460daffba0b74c8e23e to your computer and use it in GitHub Desktop.
running PyPy benchmarks
ssh to speed-python.osuosl.org (chef credintials needed)
#once off: create a virtual env for running performance
virtualenv -p python3 cpython3_virt
virtualenv -p python cpython3_virt
cpython_virt/bin/pip install performace
cpython3_virt/bin/pip install performace
wget http://buildbot.pypy.org/nightly/trunk/pypy-c-jit-latest-linux64.tar.bz2
tar -xf pypy-c-jit-latest-linux64.tar.bz2 --strip-components=1 --directory=pypy2-latest
cpython_virt/bin/python -mperformance run --python pypy2-latest/bin/pypy --output json/bench-`date +%Y-%m-%d_%H-%M`.json
#for some reason metadata is not properly "burned" into the json, add by hand:
# edit the json and add commit_id, commit_branch, commit_date to metadata key at the end of the file
# also, python2 could not run this
cpython3_virt/bin/python3 -mperformance upload json/bench-2018-04-02_11-30.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment