update makefile

improvement-double_buffer_array-logs
Oli 3 years ago
parent 8399e1971d
commit 1b8c56489c

@ -20,3 +20,6 @@ perf: binaries
test-gen: fftma
cd tests/stages/generation && python3 -m unittest test.py
time-gen: fftma
cd tests/performance/generation && python3 time.py $(N)

@ -18,18 +18,32 @@ make binaries
make run
```
## Correr los casos de prueba
## Pruebas de integración
```
make test
```
## Pruebas unitarias
### Generacion
```
make test-gen
```
## Correr las pruebas de performance
```
make perf
```
### Obtener tiempos de generacion
```
make time-gen N=<tamaño>
```
## Instalar el binario FFTMA
```

@ -42,15 +42,15 @@ SAMPLE_SIZE=1000
def time_measurement(n, sample_size):
sample = []
print(f"SAMPLE_SIZE = {SAMPLE_SIZE}")
for i in range(sample_size):
_, duration = generate(n)
print(i)
sample.append(duration)
print("sali")
npsample = np.array(sample)
print(np.mean(npsample))
print(np.median(npsample))
print(f"AVG: {np.mean(npsample)} seconds")
print(f"MEDIAN: {np.median(npsample)} seconds")
time_measurement(N, SAMPLE_SIZE)
Loading…
Cancel
Save