show version
This commit is contained in:
parent
96e91fc12a
commit
da89837a3f
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ def main():
|
||||||
start_chardet = time.time()
|
start_chardet = time.time()
|
||||||
chardet.detect(msg)
|
chardet.detect(msg)
|
||||||
result_chardet += (time.time() - start_chardet)
|
result_chardet += (time.time() - start_chardet)
|
||||||
print('chardet:', 1 / (result_chardet / do_times), 'call(s)/s')
|
print('chardet v%s:' % (chardet.__version__), 1 / (result_chardet / do_times), 'call(s)/s')
|
||||||
|
|
||||||
# Test cchardet
|
# Test cchardet
|
||||||
result_cchardet = 0
|
result_cchardet = 0
|
||||||
|
@ -24,7 +24,7 @@ def main():
|
||||||
start_cchardet = time.time()
|
start_cchardet = time.time()
|
||||||
cchardet.detect(msg)
|
cchardet.detect(msg)
|
||||||
result_cchardet += (time.time() - start_cchardet)
|
result_cchardet += (time.time() - start_cchardet)
|
||||||
print('cchardet:', 1 / (result_cchardet / do_times), 'call(s)/s')
|
print('cchardet v%s:' % (cchardet.__version__), 1 / (result_cchardet / do_times), 'call(s)/s')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue