#!/usr/bin/env ion cargo run --bin sn -- sort -t1M cargo run --bin sn -- fat cargo run --bin sn -- sort src/ # to make sure non-ascii displays correctly cargo build --release let binpath = target/release/sn # set to a suitable path let path_arg = "false" for x in @args if test $x = "--path" let path_arg = "true" end end if test $path_arg = "true" let path = @args[2] else let path = /home/vanessa/programming end # initialize cache echo 'initializing file system cache...' sn all $path > /dev/null #do the actual benchmarks let benches = ["sn all $path -p" "$binpath all $path -p" "sn sort $path -p" "$binpath sort $path -p" "sn ar $path" "$binpath ar $path"] bench @benches