#!/bin/bash

if ! cd target/release > /dev/null 1>&1
then
    echo "$0: cd target/release failed" 1>&2
    exit 1
fi

for i in $(seq 3)
do
    echo "$i"
    echo Python
    find /usr/local -type f -readable -print0 | /usr/bin/time bash -c '../../../../equivs3-python/equivs3e -0 > /dev/null 2>&1'
    echo
    echo Rust
    find /usr/local -type f -readable -print0 | /usr/bin/time bash -c './equivs3_crate > /dev/null 2>&1'
    echo
    echo
done