Commit 86fb3901 authored by tssasha's avatar tssasha
Browse files

showing test results

parent 43c7d4f0
......@@ -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
......@@ -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
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment