Skip to content

Instantly share code, notes, and snippets.

@frrist
Created November 20, 2015 06:39
Show Gist options
  • Save frrist/39960e448a9406bab5e2 to your computer and use it in GitHub Desktop.
Save frrist/39960e448a9406bab5e2 to your computer and use it in GitHub Desktop.
tester thing for testing things
#!/bin/bash
function run_thing() {
num=$1
procs=$2
./run $num $procs
}
function run_trials() {
itt=6
nproc=1
n=33554432
for i in `seq $itt`
do
run_thing $n $nproc
n=`expr $n \* 2`
nproc=`expr $nproc \* 2`
done
}
run_trials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment