Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Enchente
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vytor Calixto
Enchente
Commits
9db03628
There was a problem fetching the pipeline summary.
Commit
9db03628
authored
Apr 23, 2017
by
Vytor Calixto
Browse files
Options
Downloads
Patches
Plain Diff
Add gnuplot script
parent
74bd1a17
No related branches found
No related tags found
1 merge request
!1
Develop
Pipeline
#
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
.gitlab-ci.yml
+4
-0
4 additions, 0 deletions
.gitlab-ci.yml
tests/runTests.sh
+4
-2
4 additions, 2 deletions
tests/runTests.sh
tests/tempos.plot
+9
-0
9 additions, 0 deletions
tests/tempos.plot
with
19 additions
and
3 deletions
.gitignore
+
2
−
1
View file @
9db03628
...
@@ -4,4 +4,5 @@ main
...
@@ -4,4 +4,5 @@ main
a.out
a.out
*.in
*.in
test
test
tests/tabuleiros.txt
tests/*.txt
tests/tempos.png
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
4
−
0
View file @
9db03628
...
@@ -10,8 +10,12 @@ run_tests:
...
@@ -10,8 +10,12 @@ run_tests:
stage
:
test
stage
:
test
script
:
script
:
-
make test
-
make test
-
cd tests
-
gnuplot "tempos.plot"
artifacts
:
artifacts
:
paths
:
paths
:
-
tests/tabuleiros.txt
-
tests/tabuleiros.txt
-
tests/tempos.txt
-
tests/tempos.png
tags
:
tags
:
-
ubuntu
-
ubuntu
This diff is collapsed.
Click to expand it.
tests/runTests.sh
+
4
−
2
View file @
9db03628
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
tempo_max
=
500
tempo_max
=
500
# tamanhos do tabuleiro
# tamanhos do tabuleiro
tams
=(
8 16 32 64 128
256
512 1024
)
tams
=(
8 16 32 64 128 512 1024
2048 4096
)
# lista de cores
# lista de cores
cores
=(
4 8 16 32 64
)
cores
=(
4 8 16 32 64
)
...
@@ -17,6 +17,7 @@ CYAN='\033[0;36m'
...
@@ -17,6 +17,7 @@ CYAN='\033[0;36m'
NC
=
'\033[0m'
# Sem cor
NC
=
'\033[0m'
# Sem cor
echo
-ne
""
>
tabuleiros.txt
echo
-ne
""
>
tabuleiros.txt
echo
-ne
""
>
tempos.txt
echo
"Iniciado testes"
echo
"Iniciado testes"
for
i
in
${
tams
[*]
}
for
i
in
${
tams
[*]
}
...
@@ -61,6 +62,7 @@ do
...
@@ -61,6 +62,7 @@ do
echo
-ne
"
${
BLUE
}
Tempo médio com tamanho
${
i
}
:
${
S_medio_total
}
."
echo
-ne
"
${
BLUE
}
Tempo médio com tamanho
${
i
}
:
${
S_medio_total
}
."
printf
"%03d"
${
M_medio_total
}
printf
"%03d"
${
M_medio_total
}
echo
-e
"s (
${
T_medio_cor
}
)
${
NC
}
\n
"
echo
-e
"s (
${
T_medio_cor
}
)
${
NC
}
\n
"
echo
-e
"
${
i
}
\t
${
M_medio_total
}
"
>>
tempos.txt
done
done
fs
=
$(
cat
tabuleiros.txt |
wc
-l
)
fs
=
$(
cat
tabuleiros.txt |
wc
-l
)
...
@@ -69,6 +71,6 @@ if [ ${fs} -gt "1" ]; then
...
@@ -69,6 +71,6 @@ if [ ${fs} -gt "1" ]; then
cat
tabuleiros.txt
cat
tabuleiros.txt
exit
1
exit
1
else
else
echo
-e
"
${
GREEN
}
Nenhum tabuleiro passou do tempo limite
${
NC
}
"
echo
-e
"
${
GREEN
}
Nenhum tabuleiro passou do tempo limite
de
${
tempo_max
}
milisegundos
${
NC
}
"
exit
0
exit
0
fi
fi
This diff is collapsed.
Click to expand it.
tests/tempos.plot
0 → 100644
+
9
−
0
View file @
9db03628
set terminal png
set output "tempos.png"
set xlabel "Tamanho"
set ylabel "Tempo (milisegundos)"
set title "Tempo médio para execução considerando tamanho do tabuleiro e tempo"
set grid
set style data lines
set key
plot "tempos.txt" using 1:2 with lines lc rgb "#602b7d" lw 2
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment