%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% figures showing performance  29 June 2002

colnames = {'n_nodes'	'seconds'	'speedup'	'Ideal Speedup'
'Ideal seconds'};

comparisons = [   1	1563.6	nan	    nan	    nan
    1	216.9	7.2	    nan	    nan
    2	133.8	11.7	14.4	108.5
    4	93.4	16.7	28.8	54.2
    8	52.3	29.9	57.4	29.1
    16	27.5	56.8	114.8	14.6
    48	15.6	102	    345	    4.5     ];

% comparisons (OLD VERSION in first row)
nodes = comparisons(2:end,1);
seconds = comparisons(2:end,2);
speedup = comparisons(2:end,3);
seconds_ideal = comparisons(2:end,5);
speedup_ideal = comparisons(2:end,4);

figure;
%  seconds

subplot( 2, 1, 1)
plot( nodes, seconds )
hold on
plot( nodes, seconds_ideal, 'r-')
title('Duration of Simulation')


%  speedup
subplot( 2, 1, 2)
plot( nodes, speedup )
hold on
plot( nodes, speedup_ideal, 'r-')
title('Speedup, Relative to 2001 NCS Version')

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


