Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Output from running the pypy-gcbench script below
export PYPY_GC_NURSERY=128K # procs=1
Completed in 5831.011057 ms.
export PYPY_GC_NURSERY=256K # procs=1
Completed in 5307.267904 ms.
export PYPY_GC_NURSERY=512K # procs=1
Completed in 5007.555008 ms.
export PYPY_GC_NURSERY=768K # procs=1
Completed in 4759.601116 ms.
export PYPY_GC_NURSERY=1M # procs=1
Completed in 4775.329828 ms.
export PYPY_GC_NURSERY=2M # procs=1
Completed in 4555.644989 ms.
export PYPY_GC_NURSERY=3M # procs=1
Completed in 4471.404076 ms.
export PYPY_GC_NURSERY=4M # procs=1
Completed in 5097.769976 ms.
export PYPY_GC_NURSERY=128K # procs=2
Completed in 7815.156937 ms.
Completed in 7814.487934 ms.
export PYPY_GC_NURSERY=256K # procs=2
Completed in 7085.271120 ms.
Completed in 7085.896969 ms.
export PYPY_GC_NURSERY=512K # procs=2
Completed in 6575.930834 ms.
Completed in 6599.428892 ms.
export PYPY_GC_NURSERY=768K # procs=2
Completed in 6483.332872 ms.
Completed in 6507.758856 ms.
export PYPY_GC_NURSERY=1M # procs=2
Completed in 6395.029068 ms.
Completed in 6398.643017 ms.
export PYPY_GC_NURSERY=2M # procs=2
Completed in 6497.499943 ms.
Completed in 6497.499943 ms.
export PYPY_GC_NURSERY=3M # procs=2
Completed in 7823.734999 ms.
Completed in 7829.423189 ms.
export PYPY_GC_NURSERY=4M # procs=2
Completed in 7800.379992 ms.
Completed in 7804.724932 ms.
export PYPY_GC_NURSERY=128K # procs=3
Completed in 8011.610985 ms.
Completed in 8111.556053 ms.
Completed in 8291.960955 ms.
export PYPY_GC_NURSERY=256K # procs=3
Completed in 7434.423923 ms.
Completed in 7528.063059 ms.
Completed in 7622.061968 ms.
export PYPY_GC_NURSERY=512K # procs=3
Completed in 7441.507816 ms.
Completed in 7501.924992 ms.
Completed in 7523.072004 ms.
export PYPY_GC_NURSERY=768K # procs=3
Completed in 7643.927097 ms.
Completed in 7716.995955 ms.
Completed in 7781.433821 ms.
export PYPY_GC_NURSERY=1M # procs=3
Completed in 6852.202177 ms.
Completed in 6965.686083 ms.
Completed in 7044.052124 ms.
export PYPY_GC_NURSERY=2M # procs=3
Completed in 9124.602079 ms.
Completed in 9349.203825 ms.
Completed in 9354.802847 ms.
export PYPY_GC_NURSERY=3M # procs=3
Completed in 9821.616888 ms.
Completed in 9853.357077 ms.
Completed in 9852.499008 ms.
export PYPY_GC_NURSERY=4M # procs=3
Completed in 9588.237047 ms.
Completed in 9724.667072 ms.
Completed in 9733.549833 ms.
export PYPY_GC_NURSERY=128K # procs=4
Completed in 10042.144060 ms.
Completed in 10105.877161 ms.
Completed in 10130.355120 ms.
Completed in 10134.713888 ms.
export PYPY_GC_NURSERY=256K # procs=4
Completed in 9000.795126 ms.
Completed in 9043.730021 ms.
Completed in 9106.497049 ms.
Completed in 9143.769026 ms.
export PYPY_GC_NURSERY=512K # procs=4
Completed in 9092.828989 ms.
Completed in 9098.281145 ms.
Completed in 9119.565010 ms.
Completed in 9185.240984 ms.
export PYPY_GC_NURSERY=768K # procs=4
Completed in 8890.103102 ms.
Completed in 8931.953192 ms.
Completed in 8972.336054 ms.
Completed in 9056.817055 ms.
export PYPY_GC_NURSERY=1M # procs=4
Completed in 9817.270994 ms.
Completed in 9876.386881 ms.
Completed in 9895.991087 ms.
Completed in 9974.203110 ms.
export PYPY_GC_NURSERY=2M # procs=4
Completed in 13156.816959 ms.
Completed in 13220.941782 ms.
Completed in 13306.089878 ms.
Completed in 13311.913967 ms.
export PYPY_GC_NURSERY=3M # procs=4
Completed in 12579.733133 ms.
Completed in 12588.733912 ms.
Completed in 12738.049030 ms.
Completed in 12753.696918 ms.
export PYPY_GC_NURSERY=4M # procs=4
Completed in 12785.748005 ms.
Completed in 12809.838057 ms.
Completed in 12849.016905 ms.
Completed in 12969.913006 ms.
#!/bin/bash
# This is from this excellent blog post:
# http://bob.pythonmac.org/archives/2011/03/17/playing-with-pypy/
for ((procs=1; procs <= 4 ; procs++)); do
for ram in 128K 256K 512K 768K 1M 2M 3M 4M; do
echo "export PYPY_GC_NURSERY=$ram # procs=$procs"
export PYPY_GC_NURSERY=$ram
for ((p=1; p <= $procs; p++)); do
(cd pypy/translator/goal; pypy gcbench.py | grep 'Completed in') &
done
wait
done
done
hw.l3cachesize: 4194304
hw.l2cachesize: 262144
hw.physicalcpu: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.