close all
clear all
clc

%% Setup
x = [1 1 2 2 4 4 8 8 16 16];
y = [1 10 1 10 1 10 1 10];

%w = avec index
w = [15.46489546 12.63562545 17.56584091 17.30165841 33.52070795 31.67028443 64.59995795 61.56679716 120.2432642 128.3052925];

%% Plot avec index
figure
% create coordinate matrices using meshgrid
[X, Y] = meshgrid(unique(x), unique(y));

% reshape z and w data into matrix form

W = reshape(w, numel(unique(y)), numel(unique(x)));



% create second surface plot and set transparency
hSurface2 = surf(X, Y, W);
set(hSurface2, 'FaceColor',[1 0 0], 'FaceAlpha',1, 'EdgeAlpha', 1);
%colormap('winter'); % set color map
%shading('interp'); % set shading to interpolate colors
hold on


% add labels
xlabel("Nombre de fil d'exécution");
ylabel("Nombre d'itération par requêtes HTTP");
zlabel('Temps moyen (ms)');
title("Performance de l'application web dorsale");

