update aliases bench and task
This commit is contained in:
parent
8e74da7b16
commit
74e2886998
5 changed files with 36 additions and 5 deletions
11
bin/benchx.awk
Normal file
11
bin/benchx.awk
Normal 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"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue