#!/bin/sh set -eu X=$(mktemp -d) cd "$X" mkdir -p "$X/.cache" cp -r "$HOME/.cache/sn0int" "$X/.cache/" #export CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}" #export RUSTUP_HOME="${RUSTUP_HOME:-$HOME/.rustup}" export HOME="$X" cat > 1k.lua < /dev/null echo '[*] Running 1k inserts' time "$@" run -f ./1k.lua