#!/bin/bash

scriptdir=$(dirname $(realpath $0))
export PYTHONPATH=$(realpath ${scriptdir}/..)
printf %"$(tput cols)"s |tr " " "-"
echo
echo "10000 spawns with fork and exec..."
time python3 ${scriptdir}/forktest.py
printf %"$(tput cols)"s |tr " " "-"
echo
echo "10000 spawns with fastprocess..."
time python3 ${scriptdir}/fptest.py
printf %"$(tput cols)"s |tr " " "-"
echo
echo "10000 spawns with subprocess..."
time python3 ${scriptdir}/sptest.py
printf %"$(tput cols)"s |tr " " "-"
