[Assorted-commits] SF.net SVN: assorted:[1182] ydb/trunk/tools/analysis.py
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-02-15 03:22:05
|
Revision: 1182 http://assorted.svn.sourceforge.net/assorted/?rev=1182&view=rev Author: yangzhang Date: 2009-02-15 03:21:58 +0000 (Sun, 15 Feb 2009) Log Message: ----------- distinguish between "issued"/"handled" for scaling analysis Modified Paths: -------------- ydb/trunk/tools/analysis.py Modified: ydb/trunk/tools/analysis.py =================================================================== --- ydb/trunk/tools/analysis.py 2009-02-15 03:20:46 UTC (rev 1181) +++ ydb/trunk/tools/analysis.py 2009-02-15 03:21:58 UTC (rev 1182) @@ -110,6 +110,11 @@ print 'file:', getname(scalingpath) res = logextract(scalingpath, 'n', [ r'=== n=(?P<n>-?\d+) ', + r'handled .*\((?P<tps>[.\d]+) tps\)' ]) + + print 'file:', getname(scalingpath) + res0 = logextract(scalingpath, 'n', [ + r'=== n=(?P<n>-?\d+) ', r'issued .*\((?P<tps>[.\d]+) tps\)' ]) print 'file:', getname(ariespath) @@ -117,9 +122,14 @@ r'=== n=(?P<n>-?\d+) ', r'issued .*\((?P<tps>[.\d]+) tps\)' ]) - errorbar(hstack([res2['n'], res['n']]), - hstack([res2['tps mean'], res['tps mean']]), - hstack([res2['tps sd'], res['tps sd']])) + print hstack([res2['n'], res0['n'][:1], res['n']]) + print hstack([res2['tps mean'], res0['tps mean'][:1], res['tps mean']]) + print hstack([res2['tps sd'], res0['tps sd'][:1], res['tps sd']]) + + errorbar( + hstack([res2['n'], res0['n'][:1], res['n']]), + hstack([res2['tps mean'], res0['tps mean'][:1], res['tps mean']]), + hstack([res2['tps sd'], res0['tps sd'][:1], res['tps sd']])) title('Scaling of baseline throughput with number of nodes') xlabel('Node count') ylabel('Mean TPS (stdev error bars)') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |