repo.or.cz
/
fbsplash.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix typo in the Gentoo initscript.
[fbsplash.git]
/
core
/
misc
/
avg.sh
blob
09fc780cfcb48c28b46a38c0260860377086bfad
1
#!/bin/bash
2
3
cnt
=
25
4
sum
=
0
5
6
for
i
in
`seq 0
$cnt
`
7
do
8
res
=
`/usr/bin/time -f %U ./benchmark 2>&1`
9
sum
=
`echo "
$sum
+
$res
" | bc`
10
done
11
12
echo
"scale=2 ;
$sum
/
$cnt
"
|
bc
13
14
15