update makefile

improvement-remove_generate_array
Oli 3 years ago
parent 90bd8b0995
commit ffc4829ab7

@ -18,4 +18,7 @@ perf: binaries
cd tests/performance && python3 connectivity.py
test-gen: fftma
cd tests/stages/generation && python3 -m unittest test.py
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