From: zooko Date: Sun, 11 Nov 2007 15:51:03 +0000 (+0530) Subject: zfec: set benchmark to sizes that don't fit in the Intel Core Duo 2's caches X-Git-Url: https://git.rkrishnan.org/junkers?a=commitdiff_plain;h=ab6d860dc4d64d22cb76b647dffa4e04c11e62ca;p=tahoe-lafs%2Fzfec.git zfec: set benchmark to sizes that don't fit in the Intel Core Duo 2's caches darcs-hash:6cf12e10da93609df1a9908db81ab2eb6c5a895a --- 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()