|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- % Plot measurements
-
- accuracy = [100 80 60 40 20 10];
- ser_sift_acc = [ 4395 4365 4384 4315 4295 4246 ];
- ser_mnist_ser_acc = [ 7936 7924 7886 7903 7844 7801 ];
-
- omp_sift_acc = [
- 4093 4098 4040 4001 3980 3937
- ];
- omp_mnist_acc = [
- 7575 7463 7389 7416 7321 7303
- ];
-
- cilk_sift_acc = [
- 3718 3739 3673 3668 3608 3557
- ];
- cilk_mnist_acc = [
- 7064 7071 7035 6948 6962 6913
- ];
-
- pth_sift_acc = [
- 1157 1159 1121 1100 1084 1075
- ];
- pth_mnist_acc = [
- 2050 2086 2040 2020 2004 1979
- ];
-
- % 1ο Διάγραμμα: OMP
- figure;
- set(gcf, 'Position', [100, 100, 1280, 720]); % Set the figure size to HD
- plot(accuracy, ser_sift_acc, '-o', 'DisplayName', 'Serial SIFT');
- hold on;
- plot(accuracy, ser_mnist_ser_acc, '-s', 'DisplayName', 'Serial MNIST');
- plot(accuracy, omp_sift_acc, '-^', 'DisplayName', 'OMP SIFT');
- plot(accuracy, omp_mnist_acc, '-d', 'DisplayName', 'OMP MNIST');
- hold off;
- title('OMP');
- xlabel('Accuracy (%)');
- ylabel('Execution Time [msec]');
- set(gca, 'XDir', 'reverse'); % reverse x
- legend('Location', 'northwest');
- grid on;
- print(gcf, 'OMP_over_accuracy.png', '-dpng', '-r300');
-
- % 2ο Διάγραμμα: CILK
- figure;
- set(gcf, 'Position', [100, 100, 1280, 720]); % Set the figure size to HD
- plot(accuracy, ser_sift_acc, '-o', 'DisplayName', 'Serial SIFT');
- hold on;
- plot(accuracy, ser_mnist_ser_acc, '-s', 'DisplayName', 'Serial MNIST');
- plot(accuracy, cilk_sift_acc, '-^', 'DisplayName', 'CILK SIFT');
- plot(accuracy, cilk_mnist_acc, '-d', 'DisplayName', 'CILK MNIST');
- hold off;
- title('CILK');
- xlabel('Accuracy (%)');
- ylabel('Execution Time [msec]');
- set(gca, 'XDir', 'reverse'); % reverse x
- legend('Location', 'northwest');
- grid on;
- print(gcf, 'CILK_over_accuracy.png', '-dpng', '-r300');
-
- % 3ο Διάγραμμα: Pthreads
- figure;
- set(gcf, 'Position', [100, 100, 1280, 720]); % Set the figure size to HD
- plot(accuracy, ser_sift_acc, '-o', 'DisplayName', 'Serial SIFT');
- hold on;
- plot(accuracy, ser_mnist_ser_acc, '-s', 'DisplayName', 'Serial MNIST');
- plot(accuracy, pth_sift_acc, '-^', 'DisplayName', 'Pthreads SIFT');
- plot(accuracy, pth_mnist_acc, '-d', 'DisplayName', 'Pthreads MNIST');
- hold off;
- title('Pthreads');
- xlabel('Accuracy (%)');
- ylabel('Execution Time [msec]');
- set(gca, 'XDir', 'reverse'); % reverse x
- legend('Location', 'northwest');
- grid on;
- print(gcf, 'Pthreads_over_accuracy.png', '-dpng', '-r300');
-
|