Permalink
Browse files

small benchmark tweaks

  • Loading branch information...
1 parent 46f6d16 commit 4626a775eade12205403276a5d21b349fdca8225 @kmike committed Mar 4, 2013
Showing with 6 additions and 3 deletions.
  1. +1 −1 bench.ini
  2. +4 −1 benchmarks/bench.py
  3. +1 −1 benchmarks/speed.py
View
@@ -26,7 +26,7 @@ deps=
commands=
pymorphy dict mem_usage
- python benchmarks/bench.py run {posargs:--repeats=25}
+ python benchmarks/bench.py run {posargs:--repeats=37}
[testenv:py27_no_compiler]
View
@@ -39,7 +39,10 @@ def main():
logger.setLevel(logging.INFO)
if args['run']:
- speed.bench_all(args['--dict'], int(args['--repeats']))
+ speed.bench_all(
+ dict_path=args['--dict'],
+ repeats=int(args['--repeats'])
+ )
return 0
View
@@ -116,7 +116,7 @@ def show_info(bench_name, func, note='', count=len(words)):
logger.info("")
-def bench_all(dict_path=None, repeats=5):
+def bench_all(repeats, dict_path=None):
""" Run all benchmarks """
logger.debug("loading MorphAnalyzer...")
morph = MorphAnalyzer(dict_path)

0 comments on commit 4626a77

Please sign in to comment.