Permalink
Browse files

Out of curiosity, record PyPy virtual memory usage.

Also, write vm-baseline CSV to a file.

Both are saved in benchmark-data/saved/2017-11-19.
  • Loading branch information...
Andy Chu
Andy Chu committed Nov 19, 2017
1 parent 371c3cd commit cc1b5156a59daac57442e28cee5d2d6096deac40
Showing with 10 additions and 7 deletions.
  1. +6 −1 benchmarks/pypy.sh
  2. +4 −6 benchmarks/virtual-memory.sh
View
@@ -18,7 +18,12 @@ readonly ABUILD=~/git/alpine/abuild/abuild
parse-abuild() {
local vm=$1
time $vm bin/oil.py osh -n $ABUILD >/dev/null
local out=_tmp/pypy
mkdir -p $out
time $vm bin/oil.py osh \
--dump-proc-status-to $out/proc-status.txt \
-n $ABUILD >/dev/null
}
# ~3.5 seconds
@@ -59,14 +59,12 @@ baseline-csv() {
# The last one
local -a latest=(${m1[-1]} ${m2[-1]})
benchmarks/virtual_memory.py baseline "${latest[@]}"
benchmarks/virtual_memory.py baseline "${latest[@]}" \
| tee $out/vm-baseline.csv
}
# TODO: parse 10 osh-parser files, measure virtual memory at the end. However
# this only applies to OSH, because you need a hook to dump the /proc/$$/status
# file.
demo() {
# NOTE: Could also add Python introspection.
dump-demo() {
local out=_tmp/virtual-memory
mkdir -p $out

0 comments on commit cc1b515

Please sign in to comment.