Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aleksandra Tsys
Suggester
Commits
86fb3901
Commit
86fb3901
authored
May 20, 2021
by
tssasha
Browse files
showing test results
parent
43c7d4f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
86fb3901
...
...
@@ -13,4 +13,4 @@
## Инструкция к тестированию
`test/words.py`
->
`test/request.py`
->
`test/results.csv`
\ No newline at end of file
`test/words.py`
->
`test/request.py`
->
`test/show results.py`
\ No newline at end of file
test/request.py
View file @
86fb3901
...
...
@@ -70,4 +70,6 @@ with myFile:
writer
=
csv
.
writer
(
myFile
)
writer
.
writerows
(
test_res
)
print
(
"Average time for my -"
,
sum
(
time
[:
num
])
/
num
/
10
)
print
(
"Average time for fuzzy -"
,
sum
(
time
[
num
:])
/
num
/
10
)
print
(
"Writing complete"
)
\ No newline at end of file
test/show results.py
0 → 100644
View file @
86fb3901
from
numpy
import
genfromtxt
import
matplotlib.pyplot
as
plt
import
pandas
as
pd
# per_data=genfromtxt('result.csv',delimiter=',')
# plt.xlabel ('x stuff')
# plt.ylabel ('y stuff')
# plt.title('my test result')
# plt.show()
df
=
pd
.
read_csv
(
'results.csv'
)
df
.
plot
(
x
=
"query"
,
y
=
[
"my time"
,
"fuzzy time"
])
plt
.
ylim
(
0
,
0.0025
)
plt
.
ylabel
(
'seconds'
)
plt
.
show
()
\ No newline at end of file
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