Graphic client.c and server.c time code execution created

This commit is contained in:
Vinicius 2023-09-05 21:55:09 -03:00
parent 1a21254333
commit eb2896a210
6 changed files with 15 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
client Executable file

Binary file not shown.

12
graphic.py Normal file
View File

@ -0,0 +1,12 @@
import matplotlib.pyplot as plt
categorias = ["0,064KB","0,128KB","0,256KB","0,512KB","1KB","2KB","4KB","8KB"]
valores = [0.13,0.11,0.13,0.12,0.13,0.13,0.13,0.14]
plt.bar(categorias, valores, color='purple', width=0.8)
plt.xlabel('Tamanho do buffer em (KB)')
plt.ylabel('Tempo de execução em (ms)')
plt.title('Transmissão de Buffers entre Cliente e Servidor via Conexão por Socket')
plt.show()

View File

@ -11,8 +11,8 @@ clean:
run_client:
@$(CC) client.c -o client
@./client $(buffer_size)&
@./client $(buffer_size)
run_server:
@$(CC) server.c -o server
@./server $(buffer_size)&
@./server $(buffer_size)

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
matplotlib

BIN
server Executable file

Binary file not shown.