update aliases bench and task

This commit is contained in:
Barak Michener 2014-09-11 15:20:03 -04:00
parent 8e74da7b16
commit 74e2886998
5 changed files with 36 additions and 5 deletions

11
bin/benchx.awk Normal file
View file

@ -0,0 +1,11 @@
{
x = substr($4, 1,1)
v = substr($4, 2, length($4) - 2)
if (x == "+") {
printf "%s\t%s%.2fx\n", $0, x, (100 + v) / 100;
} else if (x == "-") {
printf "%s\t%s%.2fx\n", $0, x, (100 / (100 - v));
} else {
printf "%s\t%s\n", $0, "mult"
}
}