#!/bin/sh set -e TEST_DIR="/usr" ( cd "$(dirname "$0")" cc -O3 -flto=thin -pipe fts.c -o fts cargo build --quiet --release --example ls find="find $TEST_DIR; true" fts="./fts $TEST_DIR" ls="../target/release/examples/ls $TEST_DIR" sudo -v echo "COLD" hyperfine --prepare "sync; sudo purge" "$find" "$fts" "$ls" echo "WARM" hyperfine --warmup 5 "$find" "$fts" "$ls" )