From da89837a3fddbfdba5c70fd3ac244a6577153471 Mon Sep 17 00:00:00 2001 From: PyYoshi Date: Fri, 14 Apr 2017 11:25:13 +0900 Subject: [PATCH] show version --- src/tests/bench.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/bench.py b/src/tests/bench.py index 2b23730..a111856 100644 --- a/src/tests/bench.py +++ b/src/tests/bench.py @@ -16,7 +16,7 @@ def main(): start_chardet = time.time() chardet.detect(msg) 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 result_cchardet = 0 @@ -24,7 +24,7 @@ def main(): start_cchardet = time.time() cchardet.detect(msg) 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__': main()