deb-python-rjsmin/bench.sh

24 lines
387 B
Bash
Executable File

#!/bin/bash
set -e
export PYTHONPATH=$PWD
cleanup() {
rm -f -- "$out"
}
out="$(mktemp)"
trap cleanup EXIT
for v in 3.4 3.3 3.2 3.1 3.0 2.7 2.6 2.5 2.4; do
(
set -e
p=python$v
$p make.py makefile
CFLAGS=-O3 make clean compile
$p -OO bench/main.py -p >( cat - >>"$out" ) bench/*.js
)
done
python make.py makefile
python -mbench.write -p docs/BENCHMARKS <"$out"