From ab6d860dc4d64d22cb76b647dffa4e04c11e62ca Mon Sep 17 00:00:00 2001 From: zooko Date: Sun, 11 Nov 2007 21:21:03 +0530 Subject: [PATCH] zfec: set benchmark to sizes that don't fit in the Intel Core Duo 2's caches darcs-hash:6cf12e10da93609df1a9908db81ab2eb6c5a895a --- zfec/bench/bench_zfec.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zfec/bench/bench_zfec.py b/zfec/bench/bench_zfec.py index 1e85888..39af1bb 100644 --- a/zfec/bench/bench_zfec.py +++ b/zfec/bench/bench_zfec.py @@ -14,7 +14,7 @@ def donothing(results, reslenthing): pass K=3 -M=10 +M=256 d = "" ds = [] @@ -73,9 +73,10 @@ def bench(): # for f in [_encode_file_stringy_easyfec, _encode_file_stringy, _encode_file, _encode_file_not_really,]: # for f in [_encode_file,]: # for f in [_encode_file_not_really, _encode_file_not_really_and_hash, _encode_file, _encode_file_and_hash,]: - for f in [_encode_data_not_really, _encode_data_easyfec, _encode_data_fec,]: + # for f in [_encode_data_not_really, _encode_data_easyfec, _encode_data_fec,]: + for f in [_encode_data_fec,]: print f - benchutil.bench(f, initfunc=_make_new_rand_data, TOPXP=8, MAXREPS=256, MAXTIME=64) - benchutil.bench(f, initfunc=_make_new_rand_data, TOPXP=16, MAXREPS=256, MAXTIME=64) + # benchutil.bench(f, initfunc=_make_new_rand_data, TOPXP=8, MAXREPS=256, MAXTIME=64) + benchutil.bench(f, initfunc=_make_new_rand_data, TOPXP=25, MAXREPS=256, MAXTIME=64) bench() -- 2.45.2