scripts/simplebench: fix grammar: s/successed/succeeded/

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20201021145859.11201-14-vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
Vladimir Sementsov-Ogievskiy 2020-10-21 17:58:51 +03:00 committed by Max Reitz
parent d2ace2b95f
commit 270124e7ef

View File

@ -54,14 +54,14 @@ def bench_one(test_func, test_env, test_case, count=5, initial_run=True):
result = {'runs': runs} result = {'runs': runs}
successed = [r for r in runs if ('seconds' in r)] succeeded = [r for r in runs if ('seconds' in r)]
if successed: if succeeded:
avg = sum(r['seconds'] for r in successed) / len(successed) avg = sum(r['seconds'] for r in succeeded) / len(succeeded)
result['average'] = avg result['average'] = avg
result['delta'] = max(abs(r['seconds'] - avg) for r in successed) result['delta'] = max(abs(r['seconds'] - avg) for r in succeeded)
if len(successed) < count: if len(succeeded) < count:
result['n-failed'] = count - len(successed) result['n-failed'] = count - len(succeeded)
return result return result