|
end | load ("results.mat") colors |
|
| figure (6) |
|
| errorbar (frame_length_range *1000, avg_proc_duration_bigstation, std_proc_duration_bigstation, 'Color', colors(1,:), 'LineWidth', 2) |
|
| errorbar (frame_length_range *1000, avg_proc_duration_agora, std_proc_duration_agora, 'Color', colors(2,:), 'LineWidth', 2) |
|
| set (gca, 'FontSize', 24) |
|
| xlabel ('Frame length(us)') |
|
| ylabel ('Processing time(us)') |
|
| title ('Uplink frame Processing latency') |
|
| set (gca, 'YScale', 'log') ylim([0 7000]) |
|
| legend ([h1, h2, h3], 'Pipeline parallel', 'Agora', 'Frame length', 'location', 'best') |
|
| xticks ([0:8:32]) |
|
| xlim ([5, 35]) |
|
| set (gcf, 'Position',[100 100 350 350]) %% avg_proc_start_duration |
|
| figure (7) |
|
| set (h1(1), 'facecolor',[0.9, 0.9, 0.9]) |
|
| set (h1(2), 'facecolor',[0.4, 0.4, 0.4]) |
|
| set (gca, 'xtick',[1:length(names)], 'xticklabel', names) |
|
| legend ("agora", "Pipeline parallel", "location", "northwest") |
|
| figure (8) |
|
| set (l, 'FontSize', 18) |
|
|
| frame_length_range = [1:5] |
|
| ue_num = 16 |
|
| ant_num = 64 |
|
| avg_proc_duration_agora = [] |
|
| std_proc_duration_agora = [] |
|
| avg_proc_duration_bigstation = [] |
|
| std_proc_duration_bigstation = [] |
|
| avg_fft_duration_agora = [] |
|
| avg_zf_duration_agora = [] |
|
| avg_decode_duration_agora = [] |
|
| avg_proc_start_agora = [] |
|
| avg_fft_duration_bigstation = [] |
|
| avg_zf_duration_bigstation = [] |
|
| avg_decode_duration_bigstation = [] |
|
| avg_proc_start_bigstation = [] |
|
| index = 0 |
|
for | i |
|
| filename = sprintf('uplink/timeresult_agora_%dx%d_%dms.txt',ant_num, ue_num, frame_length_range(index)) |
|
| clf |
|
hold | on |
|
| h1 = plot(frame_length_range*1000,avg_proc_duration_bigstation,'s-','Color', colors(1,:), 'LineWidth',2,'MarkerSize',20) |
|
| h2 = plot(frame_length_range*1000,avg_proc_duration_agora, '^-', 'Color', colors(2,:), 'LineWidth',2, 'MarkerSize',20) |
|
| h3 = plot(frame_length_range*1000, frame_length_range*1000, 'k--', 'LineWidth',2) |
|
| l1 = legend([h_fft_big,h_fft_big_5core,h_fft_comp,h_pilot,h_theory],{'BigStation (n_{FFT}=min)','BigStation (n_{FFT}=5)', 'agora', 'Pilot RX', 'Theoretical pilot RX'},'Location','best','Orientation','vertical') |
|
l1 | NumColumns = 2 |
|
| avg_zf_duration = [avg_zf_duration_agora(1), avg_zf_duration_bigstation(1)] |
|
| avg_fft_duration = [avg_fft_duration_agora(1) - avg_proc_start_agora(1), avg_fft_duration_bigstation(1) - avg_proc_start_bigstation(1)] |
|
| avg_decode_duration = [avg_decode_duration_agora(1), avg_decode_duration_bigstation(1)] |
|
| avg_all = [avg_proc_start_duration |
|
| names = {'Queueing'; 'Pilot'; 'ZF'; 'DataProc';} |
|
| h4 = plot(frame_length_range*1000,avg_proc_duration_agora, '^-', 'Color', colors(2,:), 'LineWidth',2, 'MarkerSize',15) |
|
| h5 = plot(frame_length_range*1000, frame_length_range*1000, 'k--', 'LineWidth',2) |
|
| l =legend([h1,h2,h3,h4,h5],'BigStation (99th tail)','BigStation','Agora (99th tail)','Agora','Frame length', 'location','best') |
|