Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
WayeKids
w4b
Commits
06bcd29e
Commit
06bcd29e
authored
Mar 29, 2017
by
ARDUIN PAUL
Browse files
Ajout des scripts finaux
parent
c8b1ff11
Changes
3
Hide whitespace changes
Inline
Side-by-side
ProjetW4b/ProjetW4b/testHash.sh
View file @
06bcd29e
#!/bin/bash
TAILLE_TAB
=
"100000000 1000000000"
NB_TESTS
=
5
echo
"taille
\t
test
\t
exectime
\t
mem"
TAILLE_TAB
=
"100000000 150000000 200000000 250000000"
NB_TESTS1
=
5
NB_TESTS0
=
5
echo
-e
"taille
\t
test
\t
exectime
\t
mem"
RES
=
""
for
tab
in
$TAILLE_TAB
do
RES
=
""
for
tests
in
`
seq
1
$NB_TESTS
`
for
tests0
in
`
seq
1
$NB_TESTS0
`
do
RES
=
"
$tab
\t
$tests
"
RES
=
"
$RES
`
(
/usr/bin/time
-f
"%U
\t
%M"
mono progHash.exe 1
$tab
>
/dev/null
)
2>&1
`
"
echo
-e
$RES
done
for
tests
in
`
seq
1
$NB_TESTS1
`
do
RES
=
"
$tab
\t
$tests
\t
"
RES
=
"
$RES
`
(
/usr/bin/time
-f
"%U
\t\t
%M"
mono progHash.exe
$tests0
$tab
42763
>
/dev/null
)
2>&1
`
\t
"
echo
"
$RES
"
done
done
done
ProjetW4b/ProjetW4b/testList.sh
View file @
06bcd29e
#!/bin/bash
TAILLE_LIST
=
"100000000 1000000000"
NB_TESTS
=
5
TAILLE_TAB
=
"100000000 150000000 200000000 250000000"
NB_TESTS1
=
5
NB_TESTS0
=
5
echo
-e
"taille
\t
test
\t
exectime
\t
mem"
for
list
in
$TAILLE_
LIST
RES
=
""
for
tab
in
$TAILLE_
TAB
do
RES
=
""
for
tests
in
`
seq
1
$NB_TESTS
`
for
tests0
in
`
seq
1
$NB_TESTS0
`
do
RES
=
"
$list
\t
$tests
\t
"
RES
=
"
$RES
`
(
/usr/bin/time
-f
"%U
\t
%M"
./progList
$list
>
/dev/null
)
2>&1
`
"
echo
-e
$RES
done
for
tests
in
`
seq
1
$NB_TESTS1
`
do
RES
=
"
$tab
\t
$tests
\t
"
RES
=
"
$RES
`
(
/usr/bin/time
-f
"%U
\t\t
%M"
mono progList.exe
$tests0
$tab
42763
>
/dev/null
)
2>&1
`
\t
"
echo
"
$RES
"
done
done
done
ProjetW4b/ProjetW4b/testTab.sh
View file @
06bcd29e
#!/bin/bash
TAILLE_TAB
=
"100000000 1000000000"
NB_TESTS1
=
3
NB_TESTS
2
=
5
TAILLE_TAB
=
"100000000 1
5
0000000
200000000 2500000
00"
NB_TESTS1
=
5
NB_TESTS
0
=
5
echo
-e
"taille
\t
test
\t
exectime
\t
mem"
RES
=
""
for
tab
in
$TAILLE_TAB
do
for
tests
in
`
seq
1
$NB_TESTS
1
`
for
tests
0
in
`
seq
1
$NB_TESTS
0
`
do
RES
=
"
$tab
\t
$tests
\t
"
RES
=
"
$RES
`
(
/usr/bin/time
-f
"%U
\t\t
%M"
mono progTab.exe 1
$tab
>
/dev/null
)
2>&1
`
\t
"
echo
"
$RES
"
done
for
tests
in
`
seq
1
$NB_TESTS1
`
do
RES
=
"
$tab
\t
$tests
\t
"
RES
=
"
$RES
`
(
/usr/bin/time
-f
"%U
\t\t
%M"
mono progTab.exe
$tests0
$tab
42763
>
/dev/null
)
2>&1
`
\t
"
echo
"
$RES
"
done
done
done
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment